瀏覽代碼

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>
Michal Pecio 13 年之前
父節點
當前提交
2d8fced75c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/cpufreq/cpufreq_conservative.c

+ 1 - 0
drivers/cpufreq/cpufreq_conservative.c

@@ -584,6 +584,7 @@ static int cpufreq_governor_dbs(struct cpufreq_policy *policy,
 			__cpufreq_driver_target(
 			__cpufreq_driver_target(
 					this_dbs_info->cur_policy,
 					this_dbs_info->cur_policy,
 					policy->min, CPUFREQ_RELATION_L);
 					policy->min, CPUFREQ_RELATION_L);
+		dbs_check_cpu(this_dbs_info);
 		mutex_unlock(&this_dbs_info->timer_mutex);
 		mutex_unlock(&this_dbs_info->timer_mutex);
 
 
 		break;
 		break;