aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorEric Piel <Eric.Piel@tremplin-utc.net>2006-03-10 11:35:27 +0200
committerDominik Brodowski <linux@dominikbrodowski.net>2006-03-26 10:46:18 +0200
commit9cbad61b41f0b6f0a4c600fe96d8292ffd592b50 (patch)
tree85634cbfc70d97534926230dfc4bdc8880a80242 /drivers/cpufreq
parentff8c288d7d1a368b663058cdee1ea0adcdef2fa2 (diff)
downloadkernel_samsung_crespo-9cbad61b41f0b6f0a4c600fe96d8292ffd592b50.zip
kernel_samsung_crespo-9cbad61b41f0b6f0a4c600fe96d8292ffd592b50.tar.gz
kernel_samsung_crespo-9cbad61b41f0b6f0a4c600fe96d8292ffd592b50.tar.bz2
[PATCH] cpufreq_ondemand: keep ignore_nice_load value when it is reselected
Keep the value of ignore_nice_load of the ondemand governor even after the governor has been deselected and selected back. This is the behavior of the other exported values of the ondemand governor and it's much more user-friendly. Signed-off-by: Eric Piel <eric.piel@tremplin-utc.net> Acked-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/cpufreq_ondemand.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c
index 6430489..cd846f57 100644
--- a/drivers/cpufreq/cpufreq_ondemand.c
+++ b/drivers/cpufreq/cpufreq_ondemand.c
@@ -84,6 +84,7 @@ struct dbs_tuners {
static struct dbs_tuners dbs_tuners_ins = {
.up_threshold = DEF_FREQUENCY_UP_THRESHOLD,
.sampling_down_factor = DEF_SAMPLING_DOWN_FACTOR,
+ .ignore_nice = 0,
};
static inline unsigned int get_cpu_idle_time(unsigned int cpu)
@@ -434,8 +435,6 @@ static int cpufreq_governor_dbs(struct cpufreq_policy *policy,
def_sampling_rate = MIN_STAT_SAMPLING_RATE;
dbs_tuners_ins.sampling_rate = def_sampling_rate;
- dbs_tuners_ins.ignore_nice = 0;
-
dbs_timer_init();
}