diff options
author | Fabio Baltieri <fabio.baltieri@linaro.org> | 2012-12-27 14:55:40 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-02-02 00:01:13 +0100 |
commit | da53d61e21a5869b2e44247bb37deb8be387e063 (patch) | |
tree | d4a7f04cac977e16b6db523635cb875c8523fb2e /drivers/cpufreq/cpufreq_governor.c | |
parent | 2abfa876f1117b0ab45f191fb1f82c41b1cbc8fe (diff) | |
download | lwn-da53d61e21a5869b2e44247bb37deb8be387e063.tar.gz lwn-da53d61e21a5869b2e44247bb37deb8be387e063.zip |
cpufreq: ondemand: call dbs_check_cpu only when necessary
Modify ondemand timer to not resample CPU utilization if recently
sampled from another SW coordinated core.
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_governor.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_governor.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/cpufreq/cpufreq_governor.c b/drivers/cpufreq/cpufreq_governor.c index b0e4506f2cae..ee8b7cac11f3 100644 --- a/drivers/cpufreq/cpufreq_governor.c +++ b/drivers/cpufreq/cpufreq_governor.c @@ -290,6 +290,9 @@ second_time: mutex_unlock(&dbs_data->mutex); if (dbs_sw_coordinated_cpus(cpu_cdbs)) { + /* Initiate timer time stamp */ + cpu_cdbs->time_stamp = ktime_get(); + for_each_cpu(j, policy->cpus) { struct cpu_dbs_common_info *j_cdbs; |