]> nv-tegra.nvidia Code Review - linux-3.10.git/commitdiff
video: tegra: gk20a: reduce pmu_idle delay
authorPrashant Malani <pmalani@nvidia.com>
Mon, 30 Sep 2013 01:32:51 +0000 (18:32 -0700)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Fri, 11 Oct 2013 08:25:43 +0000 (01:25 -0700)
The usleep range is too heavy. In case the condition
is not true, we incur a penalty of > 1 ms. Reducing the
sleep range will reduce the latency hit.

Change-Id: Ib2269685c5e2f6816bd630ec01fcbd17e32139de
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/289276
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/video/tegra/host/gk20a/pmu_gk20a.c

index 5741a033b0051b1150352b665d2e04de446b1a71..8a0b5651dd2e6146213d5b6dbac9f2aed08da238 100644 (file)
@@ -160,7 +160,7 @@ static int pmu_idle(struct pmu_gk20a *pmu)
                                idle_stat);
                        return -EBUSY;
                }
-               usleep_range(1000, 2000);
+               usleep_range(100, 200);
        } while (1);
 
        nvhost_dbg_fn("done");