aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/ice4100/sgx535/common/queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/ice4100/sgx535/common/queue.c')
-rwxr-xr-xdrivers/staging/ice4100/sgx535/common/queue.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/staging/ice4100/sgx535/common/queue.c b/drivers/staging/ice4100/sgx535/common/queue.c
index 10609208f07..7b653786f1d 100755
--- a/drivers/staging/ice4100/sgx535/common/queue.c
+++ b/drivers/staging/ice4100/sgx535/common/queue.c
@@ -805,6 +805,28 @@ PVRSRV_ERROR PVRSRVProcessQueues(u32 ui32CallerID, int bFlush)
return PVRSRV_OK;
}
+#if defined(SUPPORT_CUSTOM_SWAP_OPERATIONS)
+void PVRSRVFreeCommandCompletePacketKM(void *CmdCookie, int bScheduleMISR)
+{
+ COMMAND_COMPLETE_DATA *psCmdCompleteData = (COMMAND_COMPLETE_DATA *)hCmdCookie;
+ SYS_DATA *psSysData;
+
+ SysAcquireData(&psSysData);
+
+ psCmdCompleteData->bInUse = 0;
+
+ PVRSRVCommandCompleteCallbacks();
+
+#if defined(SYS_USING_INTERRUPTS)
+ if(bScheduleMISR)
+ {
+ OSScheduleMISR(psSysData);
+ }
+#endif
+}
+
+#endif
+
void PVRSRVCommandCompleteKM(void *hCmdCookie, int bScheduleMISR)
{
u32 i;