diff options
author | Fabio Baltieri <fabio.baltieri@linaro.org> | 2012-12-27 09:55:40 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-02-01 18:01:13 -0500 |
commit | da53d61e21a5869b2e44247bb37deb8be387e063 (patch) | |
tree | d4a7f04cac977e16b6db523635cb875c8523fb2e /drivers/cpufreq/cpufreq_governor.c | |
parent | 2abfa876f1117b0ab45f191fb1f82c41b1cbc8fe (diff) |
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: | |||
290 | mutex_unlock(&dbs_data->mutex); | 290 | mutex_unlock(&dbs_data->mutex); |
291 | 291 | ||
292 | if (dbs_sw_coordinated_cpus(cpu_cdbs)) { | 292 | if (dbs_sw_coordinated_cpus(cpu_cdbs)) { |
293 | /* Initiate timer time stamp */ | ||
294 | cpu_cdbs->time_stamp = ktime_get(); | ||
295 | |||
293 | for_each_cpu(j, policy->cpus) { | 296 | for_each_cpu(j, policy->cpus) { |
294 | struct cpu_dbs_common_info *j_cdbs; | 297 | struct cpu_dbs_common_info *j_cdbs; |
295 | 298 | ||