From: Imre Deak Date: Mon, 4 Oct 2010 13:36:52 +0000 (+0300) Subject: gpu: pvr: remove unnecessary udelay from the HW poll loop X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c0f08f5b955666f945a2cd275e66c8d24a427d0;p=sgx.git 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 --- 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();