diff options
author | Stratos Karafotis <stratosk@semaphore.gr> | 2013-02-06 13:34:00 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-02-09 01:18:47 +0100 |
commit | 4bd4e42819c7b5b2d608b353f4d9a7717e586479 (patch) | |
tree | e465d1cf94132d9c9c8e8e5501a1c2ded47d98ab /drivers/cpufreq/cpufreq_governor.h | |
parent | df18e504aa5db8e7263c91e153c27c6f895da3c7 (diff) | |
download | op-kernel-dev-4bd4e42819c7b5b2d608b353f4d9a7717e586479.zip op-kernel-dev-4bd4e42819c7b5b2d608b353f4d9a7717e586479.tar.gz |
cpufreq: ondemand: Replace down_differential tuner with adj_up_threshold
In order to avoid the calculation of up_threshold - down_differential
every time that the frequency must be decreased, we replace the
down_differential tuner with the adj_up_threshold which keeps the
difference across multiple checks.
Update the adj_up_threshold only when the up_theshold is also updated.
Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_governor.h')
-rw-r--r-- | drivers/cpufreq/cpufreq_governor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq_governor.h b/drivers/cpufreq/cpufreq_governor.h index 16314b6..d2ac911 100644 --- a/drivers/cpufreq/cpufreq_governor.h +++ b/drivers/cpufreq/cpufreq_governor.h @@ -109,7 +109,7 @@ struct od_dbs_tuners { unsigned int sampling_rate; unsigned int sampling_down_factor; unsigned int up_threshold; - unsigned int down_differential; + unsigned int adj_up_threshold; unsigned int powersave_bias; unsigned int io_is_busy; }; |