remove unused argument from enableHostcalls/disableHostcalls functions

Change-Id: I351a6b4e23cd9f118310c5c79b1afcb4758fde1b
此提交包含在:
Aryan Salmanpour authored and Aryan Salmanpour committed 2020-06-26 16:33:30 -04:00
1 父節點 01d8a13065
當前提交 34b82eb998
3 file changed
+6 -6

No files matched your search

+2 -2
查看文件
@@ -2353,7 +2353,7 @@ void Device::releaseQueue(hsa_queue_t* queue) {
ClPrint(amd::LOG_INFO, amd::LOG_QUEUE,
"deleting hostcall buffer %p for hardware queue %p",
qInfo.hostcallBuffer_, queue);
disableHostcalls(qInfo.hostcallBuffer_, queue);
disableHostcalls(qInfo.hostcallBuffer_);
context().svmFree(qInfo.hostcallBuffer_);
}
@@ -2399,7 +2399,7 @@ void* Device::getOrCreateHostcallBuffer(hsa_queue_t* queue) {
ClPrint(amd::LOG_INFO, amd::LOG_QUEUE, "Created hostcall buffer %p for hardware queue %p", buffer,
queue);
qInfo.hostcallBuffer_ = buffer;
if (!enableHostcalls(buffer, numPackets, queue)) {
if (!enableHostcalls(buffer, numPackets)) {
ClPrint(amd::LOG_ERROR, amd::LOG_QUEUE, "Failed to register hostcall buffer %p with listener",
buffer);
return nullptr;