diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-08-23 13:48:40 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-08-23 13:48:40 +0200 |
commit | 43dde64bb1b45c7e4194f4ae30cf16c37bc317e0 (patch) | |
tree | 53141fd10552c1df58e0f580f1a7cd45dbc9ef90 /drivers/cpufreq/cpufreq.c | |
parent | Merge branch 'cpufreq/arm/fixes' of git://git.kernel.org/pub/scm/linux/kernel... (diff) | |
parent | cpufreq: schedutil: Use kobject release() method to free sugov_tunables (diff) | |
download | linux-43dde64bb1b45c7e4194f4ae30cf16c37bc317e0.tar.xz linux-43dde64bb1b45c7e4194f4ae30cf16c37bc317e0.zip |
Merge back cpufreq changes for v5.15.
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 45f3416988f1..06c526d66dd3 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -2654,18 +2654,18 @@ int cpufreq_boost_trigger_state(int state) cpufreq_driver->boost_enabled = state; write_unlock_irqrestore(&cpufreq_driver_lock, flags); - get_online_cpus(); + cpus_read_lock(); for_each_active_policy(policy) { ret = cpufreq_driver->set_boost(policy, state); if (ret) goto err_reset_state; } - put_online_cpus(); + cpus_read_unlock(); return 0; err_reset_state: - put_online_cpus(); + cpus_read_unlock(); write_lock_irqsave(&cpufreq_driver_lock, flags); cpufreq_driver->boost_enabled = !state; |