Merge tag 'defconfig-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-2.6-microblaze.git] / drivers / acpi / processor_idle.c
index 095c8ac..f37fba9 100644 (file)
@@ -1301,7 +1301,7 @@ int acpi_processor_power_state_has_changed(struct acpi_processor *pr)
        if (pr->id == 0 && cpuidle_get_driver() == &acpi_idle_driver) {
 
                /* Protect against cpu-hotplug */
-               get_online_cpus();
+               cpus_read_lock();
                cpuidle_pause_and_lock();
 
                /* Disable all cpuidle devices */
@@ -1330,7 +1330,7 @@ int acpi_processor_power_state_has_changed(struct acpi_processor *pr)
                        }
                }
                cpuidle_resume_and_unlock();
-               put_online_cpus();
+               cpus_read_unlock();
        }
 
        return 0;