gpu: pvr: no need to check for IRQ context in SGXCommandComplete
authorImre Deak <imre.deak@nokia.com>
Mon, 5 Apr 2010 22:48:58 +0000 (01:48 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:09:41 +0000 (21:09 +0300)
This function isn't called in IRQ context from anywhere, so remove
the related checks.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
CC: Mark Underwood <mark.underwood@imgtec.com>
CC: Mark Riding <mark.riding@imgtec.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@nokia.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@nokia.com>
pvr/osfunc.h
pvr/sgxinit.c

index afe1ae6..2d79af9 100644 (file)
@@ -213,12 +213,4 @@ enum PVRSRV_ERROR OSAcquirePhysPageAddr(void *pvCPUVAddr, u32 ui32Bytes,
                                        void **phOSWrapMem);
 enum PVRSRV_ERROR OSReleasePhysPageAddr(void *hOSWrapMem);
 
-#if defined(__KERNEL__)
-#define        OS_SUPPORTS_IN_LISR
-static inline IMG_BOOL OSInLISR(void unref__ * pvSysData)
-{
-       return in_irq();
-}
-#endif
-
 #endif
index 8cd0146..b9afb5a 100644 (file)
@@ -63,10 +63,9 @@ static enum PVRSRV_ERROR SGXGetBuildInfoKM(struct PVRSRV_SGXDEV_INFO *psDevInfo,
 
 static void SGXCommandComplete(struct PVRSRV_DEVICE_NODE *psDeviceNode)
 {
-       if (OSInLISR(psDeviceNode->psSysData))
-               psDeviceNode->bReProcessDeviceCommandComplete = IMG_TRUE;
-       else
-               SGXScheduleProcessQueuesKM(psDeviceNode);
+       BUG_ON(in_irq());
+
+       SGXScheduleProcessQueuesKM(psDeviceNode);
 }
 
 static u32 DeinitDevInfo(struct PVRSRV_SGXDEV_INFO *psDevInfo)