diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2017-05-24 11:15:20 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-05-26 11:10:38 +0300 |
commit | a92551e41d5a7b563ae440496bc5ca19d205231d (patch) | |
tree | 90426918982ad1449fcae40ca3524e2e461e2f68 /drivers/misc/isl29020.c | |
parent | 547efeadd42a3c75e41e33c0637cba100fc18289 (diff) | |
download | linux-a92551e41d5a7b563ae440496bc5ca19d205231d.tar.xz |
cpufreq: Use cpuhp_setup_state_nocalls_cpuslocked()
cpufreq holds get_online_cpus() while invoking cpuhp_setup_state_nocalls()
to make subsys_interface_register() and the registration of hotplug calls
atomic versus cpu hotplug.
cpuhp_setup_state_nocalls() invokes get_online_cpus() as well. This is
correct, but prevents the conversion of the hotplug locking to a percpu
rwsem.
Use cpuhp_setup/remove_state_nocalls_cpuslocked() to avoid the nested
call. Convert *_online_cpus() to the new interfaces while at it.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Acked-by: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: linux-pm@vger.kernel.org
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/20170524081547.731628408@linutronix.de
Diffstat (limited to 'drivers/misc/isl29020.c')
0 files changed, 0 insertions, 0 deletions