提交 694cb173 编写于 作者: R Rafael J. Wysocki

cpufreq: intel_pstate: Skip unnecessary PID resets on init

PID controller parameters only need to be initialized if the
get_target_pstate_use_performance() P-state selection routine
is going to be used.  It is not necessary to initialize them
otherwise, so don't do that.
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 7aec5b50
...@@ -1911,12 +1911,12 @@ static int intel_pstate_init_cpu(unsigned int cpunum) ...@@ -1911,12 +1911,12 @@ static int intel_pstate_init_cpu(unsigned int cpunum)
intel_pstate_disable_ee(cpunum); intel_pstate_disable_ee(cpunum);
intel_pstate_hwp_enable(cpu); intel_pstate_hwp_enable(cpu);
} else if (pstate_funcs.get_target_pstate == get_target_pstate_use_performance) {
intel_pstate_pid_reset(cpu);
} }
intel_pstate_get_cpu_pstates(cpu); intel_pstate_get_cpu_pstates(cpu);
intel_pstate_pid_reset(cpu);
pr_debug("controlling: cpu %d\n", cpunum); pr_debug("controlling: cpu %d\n", cpunum);
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册