cpuquiet: Tweak runnable governor threshold
Sai Gurrappadi [Wed, 1 Jul 2015 01:25:38 +0000 (18:25 -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
(cherry picked from commit 0ea60ccdf0ef146db00e3ba74bd83d85d91a368e)
Reviewed-on: http://git-master/r/814732
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Tested-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

drivers/cpuquiet/governors/runnable_threads.c

index 5f8bdb4..c1c737b 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;