]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
cpuquiet: Tweak runnable governor threshold
authorSai Gurrappadi <sgurrappadi@nvidia.com>
Wed, 1 Jul 2015 01:25:38 +0000 (18:25 -0700)
committermobile promotions <svcmobile_promotions@nvidia.com>
Mon, 17 Aug 2015 19:43:44 +0000 (12:43 -0700)
Reduced the threshold to go from 2->3core to 2.25 avg. threads instead of
2.75 avg. threads.

This allows us to respond faster to load and gives us better perf in some
cases.

Change-Id: I0833416915b978d8fe20ca4e040e56ab9201042c
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/764515
GVS: Gerrit_Virtual_Submit
Tested-by: Daniel Dworakowski <ddworakowski@nvidia.com>
Reviewed-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
drivers/cpuquiet/governors/runnable_threads.c

index 6a6337d24db3d1d5758e22b56930d42a49b27c30..ddf13c6d1ed5dff6a29585422fbe7bda058503fe 100644 (file)
@@ -44,7 +44,7 @@ static unsigned int sample_rate = 20;         /* msec */
 #define NR_FSHIFT      (1 << NR_FSHIFT_EXP)
 /* avg run threads * 8 (e.g., 11 = 1.375 threads) */
 static unsigned int default_thresholds[] = {
-       10, 18, 20, UINT_MAX
+       10, 14, 20, UINT_MAX
 };
 
 static unsigned int nr_run_last;