Merge tag 'dt-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-2.6-microblaze.git] / drivers / cpufreq / powernv-cpufreq.c
index 005600c..23a06cb 100644 (file)
@@ -918,7 +918,7 @@ static void powernv_cpufreq_work_fn(struct work_struct *work)
        unsigned int cpu;
        cpumask_t mask;
 
-       get_online_cpus();
+       cpus_read_lock();
        cpumask_and(&mask, &chip->mask, cpu_online_mask);
        smp_call_function_any(&mask,
                              powernv_cpufreq_throttle_check, NULL, 0);
@@ -939,7 +939,7 @@ static void powernv_cpufreq_work_fn(struct work_struct *work)
                cpufreq_cpu_put(policy);
        }
 out:
-       put_online_cpus();
+       cpus_read_unlock();
 }
 
 static int powernv_cpufreq_occ_msg(struct notifier_block *nb,