Move from direct call to kfd_ioctl to wrapping kmtIoctl

Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>


[ROCm/ROCR-Runtime commit: 94c0329fc4]
This commit is contained in:
Oded Gabbay
2014-12-29 15:37:42 +02:00
parent f231b71743
commit 22136281cb
9 changed files with 28 additions and 15 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ hsaKmtSetMemoryPolicy(
args.alternate_aperture_base = (uintptr_t)MemoryAddressAlternate;
args.alternate_aperture_size = MemorySizeInBytes;
int err = kfd_ioctl(AMDKFD_IOC_SET_MEMORY_POLICY, &args);
int err = kmtIoctl(kfd_fd, AMDKFD_IOC_SET_MEMORY_POLICY, &args);
return (err == -1) ? HSAKMT_STATUS_ERROR : HSAKMT_STATUS_SUCCESS;
}