Commit 4da34b7d authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'thermal-6.1-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull thermal control fix from Rafael Wysocki:
 "This fixes the control CPU selection in the intel_powerclamp thermal
  driver"

* tag 'thermal-6.1-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
  thermal: intel_powerclamp: Use first online CPU as control_cpu
parents 20df0961 4bb7f6c2
...@@ -516,11 +516,7 @@ static int start_power_clamp(void) ...@@ -516,11 +516,7 @@ static int start_power_clamp(void)
cpus_read_lock(); cpus_read_lock();
/* prefer BSP */ /* prefer BSP */
control_cpu = 0; control_cpu = cpumask_first(cpu_online_mask);
if (!cpu_online(control_cpu)) {
control_cpu = get_cpu();
put_cpu();
}
clamping = true; clamping = true;
schedule_delayed_work(&poll_pkg_cstate_work, 0); schedule_delayed_work(&poll_pkg_cstate_work, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment