diff options
author | Peter Boonstoppel <pboonstoppel@nvidia.com> | 2012-11-12 11:17:01 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 01:33:49 -0700 |
commit | f60908b9fa2f66f8f75a13177f3264083e38a9c7 (patch) | |
tree | b050a817acc41e359cfc6b9c452cf581e363e6d4 /drivers/cpuquiet | |
parent | 0b03b138f684d0dd08869bc16d2bccab6a2f9a49 (diff) |
cpuquiet: Update runnable gov param 20/100ms (1.25/2.25/2.5 +.5)
Sampling interval: 20ms
Window size: 100ms
Thresholds: 1.25/2.25/2.5 thread
Hysteresis: .5 thread
Bug 1050445
Change-Id: I5138bed06e6f3548ec440d2b9ee17460fc37adfb
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-on: http://git-master/r/163105
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Diffstat (limited to 'drivers/cpuquiet')
-rw-r--r-- | drivers/cpuquiet/governors/runnable_threads.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/cpuquiet/governors/runnable_threads.c b/drivers/cpuquiet/governors/runnable_threads.c index fcc50314d951..39aa1b279040 100644 --- a/drivers/cpuquiet/governors/runnable_threads.c +++ b/drivers/cpuquiet/governors/runnable_threads.c @@ -39,7 +39,7 @@ static struct timer_list runnables_timer; static RUNNABLES_STATE runnables_state; /* configurable parameters */ -static unsigned int sample_rate = 10; /* msec */ +static unsigned int sample_rate = 20; /* msec */ static RUNNABLES_STATE runnables_state; @@ -47,11 +47,11 @@ static RUNNABLES_STATE runnables_state; #define NR_FSHIFT (1 << NR_FSHIFT_EXP) /* avg run threads * 8 (e.g., 11 = 1.375 threads) */ static unsigned int default_thresholds[] = { - 9, 17, 25, UINT_MAX + 10, 18, 20, UINT_MAX }; static unsigned int nr_run_last; -static unsigned int nr_run_hysteresis = 4; /* 1 / 4 thread */ +static unsigned int nr_run_hysteresis = 2; /* 1 / 2 thread */ static unsigned int default_threshold_level = 4; /* 1 / 4 thread */ static unsigned int nr_run_thresholds[NR_CPUS]; @@ -68,9 +68,9 @@ static DEFINE_PER_CPU(struct runnables_avg_sample, avg_nr_sample); /* EXP = alpha in the exponential moving average. * Alpha = e ^ (-sample_rate / window_size) * FIXED_1 - * Calculated for sample_rate of 10ms, window size of 63.82ms + * Calculated for sample_rate of 20ms, window size of 100ms */ -#define EXP 1751 +#define EXP 1677 static unsigned int get_avg_nr_runnables(void) { |