From: Imre Deak Date: Mon, 5 Apr 2010 22:01:56 +0000 (+0300) Subject: gpu: pvr: remove unused function args from PVRSRVProcessQueues X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8357792e094448f06c18fbc2d6dd5c472255b03b;p=sgx.git gpu: pvr: remove unused function args from PVRSRVProcessQueues See the earlier commit with a similar change on why this is justified. Signed-off-by: Imre Deak CC: Mark Underwood CC: Mark Riding Reviewed-by: Topi Pohjolainen Reviewed-by: Ville Syrjälä --- diff --git a/pvr/deviceclass.c b/pvr/deviceclass.c index 6fde440..c5374e5 100644 --- a/pvr/deviceclass.c +++ b/pvr/deviceclass.c @@ -1055,7 +1055,7 @@ enum PVRSRV_ERROR PVRSRVSwapToDCBufferKM(void *hDeviceKM, void *hBuffer, } LOOP_UNTIL_TIMEOUT(MAX_HW_TIME_US) { - if (PVRSRVProcessQueues(KERNEL_ID, IMG_FALSE) != + if (PVRSRVProcessQueues(IMG_FALSE) != PVRSRV_ERROR_PROCESSING_BLOCKED) { goto ProcessedQueues; } @@ -1139,7 +1139,7 @@ enum PVRSRV_ERROR PVRSRVSwapToDCSystemKM(void *hDeviceKM, void *hSwapChain) } LOOP_UNTIL_TIMEOUT(MAX_HW_TIME_US) { - if (PVRSRVProcessQueues(KERNEL_ID, IMG_FALSE) != + if (PVRSRVProcessQueues(IMG_FALSE) != PVRSRV_ERROR_PROCESSING_BLOCKED) { goto ProcessedQueues; } diff --git a/pvr/pvrsrv.c b/pvr/pvrsrv.c index 30d9c63..1e6de58 100644 --- a/pvr/pvrsrv.c +++ b/pvr/pvrsrv.c @@ -795,9 +795,9 @@ void PVRSRVMISR(void *pvSysData) psDeviceNode = psDeviceNode->psNext; } - if (PVRSRVProcessQueues(ISR_ID, IMG_FALSE) == + if (PVRSRVProcessQueues(IMG_FALSE) == PVRSRV_ERROR_PROCESSING_BLOCKED) - PVRSRVProcessQueues(ISR_ID, IMG_FALSE); + PVRSRVProcessQueues(IMG_FALSE); if (psSysData->psGlobalEventObject) { void *hOSEventKM = diff --git a/pvr/queue.c b/pvr/queue.c index 2c633cc..b88b22f 100644 --- a/pvr/queue.c +++ b/pvr/queue.c @@ -485,7 +485,7 @@ static enum PVRSRV_ERROR PVRSRVProcessCommand(struct SYS_DATA *psSysData, return eError; } -enum PVRSRV_ERROR PVRSRVProcessQueues(u32 ui32CallerID, IMG_BOOL bFlush) +enum PVRSRV_ERROR PVRSRVProcessQueues(IMG_BOOL bFlush) { struct PVRSRV_QUEUE_INFO *psQueue; struct SYS_DATA *psSysData; diff --git a/pvr/queue.h b/pvr/queue.h index 09f5479..92d9fe9 100644 --- a/pvr/queue.h +++ b/pvr/queue.h @@ -41,7 +41,7 @@ struct COMMAND_COMPLETE_DATA { u32 ui32AllocSize; }; -enum PVRSRV_ERROR PVRSRVProcessQueues(u32 ui32CallerID, IMG_BOOL bFlush); +enum PVRSRV_ERROR PVRSRVProcessQueues(IMG_BOOL bFlush); #if defined(__KERNEL__) #include diff --git a/pvr/sgxinit.c b/pvr/sgxinit.c index 5fa2e0f..3d22dec 100644 --- a/pvr/sgxinit.c +++ b/pvr/sgxinit.c @@ -703,7 +703,7 @@ void HWRecoveryResetSGX(struct PVRSRV_DEVICE_NODE *psDeviceNode, SGXScheduleProcessQueuesKM(psDeviceNode); - PVRSRVProcessQueues(ui32CallerID, IMG_TRUE); + PVRSRVProcessQueues(IMG_TRUE); } static unsigned long sgx_reset_forced;