From 2c0f08f5b955666f945a2cd275e66c8d24a427d0 Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Mon, 4 Oct 2010 16:36:52 +0300 Subject: [PATCH] gpu: pvr: remove unnecessary udelay from the HW poll loop At the moment the HW polling loop does a 50 usec delay between each reading of the HW flag in question. Since this delay is no worse than just reading the HW flag continuously, get rid of it. This will reduce the wait time from 50 usec to 25 usec in the general case. Signed-off-by: Imre Deak --- pvr/pvrsrv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/pvr/pvrsrv.c b/pvr/pvrsrv.c index 65fdbc6..332e000 100644 --- a/pvr/pvrsrv.c +++ b/pvr/pvrsrv.c @@ -495,7 +495,6 @@ enum PVRSRV_ERROR PollForValueKM(u32 __iomem *pui32LinMemAddr, LOOP_UNTIL_TIMEOUT(uiMaxTime) { if ((readl(pui32LinMemAddr) & ui32Mask) == ui32Value) return PVRSRV_OK; - OSWaitus(ui32Waitus); } END_LOOP_UNTIL_TIMEOUT(); -- 2.39.5