aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorMichal Pecio <mpecio@nvidia.com>2012-09-14 15:07:48 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2012-09-14 15:07:48 -0400
commit2d8fced75cfa8c513ba1cbe682cb30207d941f2b (patch)
tree1409d0cd75f9a0a2f880772b8ab0a8cda303c76a /drivers/cpufreq
parentf26365179d13c18591539d0518aa9de568c70ee0 (diff)
cpufreq: conservative: update frequency when limits are relaxed
Reevaluate CPU load and update frequency immediately whenever limits are changed. Currently conservative doesn't do that when limits are relaxed, wasting power on systems with relatively low sampling rate. Signed-off-by: Michal Pecio <mpecio@nvidia.com> Reviewed-by: Thomas Renninger <trenn@suse.de> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/cpufreq_conservative.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c
index a1563d747fd2..b75dc2c2f8d3 100644
--- a/drivers/cpufreq/cpufreq_conservative.c
+++ b/drivers/cpufreq/cpufreq_conservative.c
@@ -584,6 +584,7 @@ static int cpufreq_governor_dbs(struct cpufreq_policy *policy,
584 __cpufreq_driver_target( 584 __cpufreq_driver_target(
585 this_dbs_info->cur_policy, 585 this_dbs_info->cur_policy,
586 policy->min, CPUFREQ_RELATION_L); 586 policy->min, CPUFREQ_RELATION_L);
587 dbs_check_cpu(this_dbs_info);
587 mutex_unlock(&this_dbs_info->timer_mutex); 588 mutex_unlock(&this_dbs_info->timer_mutex);
588 589
589 break; 590 break;