gpu: pvr: remove unnecessary udelay from the HW poll loop
authorImre Deak <imre.deak@nokia.com>
Mon, 4 Oct 2010 13:36:52 +0000 (16:36 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:09:42 +0000 (21:09 +0300)
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 <imre.deak@nokia.com>
pvr/pvrsrv.c

index 65fdbc6..332e000 100644 (file)
@@ -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();