From: Imre Deak Date: Mon, 5 Apr 2010 22:48:58 +0000 (+0300) Subject: gpu: pvr: no need to check for IRQ context in SGXCommandComplete X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9011ae107ca3fda22cd4664a60f20683eabc254a;p=sgx.git gpu: pvr: no need to check for IRQ context in SGXCommandComplete This function isn't called in IRQ context from anywhere, so remove the related checks. Signed-off-by: Imre Deak CC: Mark Underwood CC: Mark Riding Reviewed-by: Topi Pohjolainen Reviewed-by: Ville Syrjälä --- diff --git a/pvr/osfunc.h b/pvr/osfunc.h index afe1ae6..2d79af9 100644 --- a/pvr/osfunc.h +++ b/pvr/osfunc.h @@ -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 diff --git a/pvr/sgxinit.c b/pvr/sgxinit.c index 8cd0146..b9afb5a 100644 --- a/pvr/sgxinit.c +++ b/pvr/sgxinit.c @@ -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)