diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-08-08 00:14:30 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-10-08 01:02:49 +0200 |
commit | 02ef3c4a2aae65a1632b27770bfea3f83ca06772 (patch) | |
tree | 534eebffbbd62b267ca4d6fd31145a97747fd3d0 /kernel/cpu.c | |
parent | rcu: Stop excluding CPU hotplug in synchronize_sched_expedited() (diff) | |
download | linux-02ef3c4a2aae65a1632b27770bfea3f83ca06772.tar.xz linux-02ef3c4a2aae65a1632b27770bfea3f83ca06772.zip |
cpu: Remove try_get_online_cpus()
Now that synchronize_sched_expedited() no longer uses it, there are
no users of try_get_online_cpus() in mainline. This commit therefore
removes it.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/cpu.c')
-rw-r--r-- | kernel/cpu.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c index 82cf9dff4295..14a9cdf8abe9 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -102,19 +102,6 @@ void get_online_cpus(void) } EXPORT_SYMBOL_GPL(get_online_cpus); -bool try_get_online_cpus(void) -{ - if (cpu_hotplug.active_writer == current) - return true; - if (!mutex_trylock(&cpu_hotplug.lock)) - return false; - cpuhp_lock_acquire_tryread(); - atomic_inc(&cpu_hotplug.refcount); - mutex_unlock(&cpu_hotplug.lock); - return true; -} -EXPORT_SYMBOL_GPL(try_get_online_cpus); - void put_online_cpus(void) { int refcount; |