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>
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
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)