We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3a2328 commit d31eb7cCopy full SHA for d31eb7c
drivers/thermal/intel/intel_powerclamp.c
@@ -528,7 +528,7 @@ static int start_power_clamp(void)
528
529
set_target_ratio = clamp(set_target_ratio, 0U, MAX_TARGET_RATIO - 1);
530
/* prevent cpu hotplug */
531
- get_online_cpus();
+ cpus_read_lock();
532
533
/* prefer BSP */
534
control_cpu = 0;
@@ -542,7 +542,7 @@ static int start_power_clamp(void)
542
for_each_online_cpu(cpu) {
543
start_power_clamp_worker(cpu);
544
}
545
- put_online_cpus();
+ cpus_read_unlock();
546
547
return 0;
548
0 commit comments