History

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.

Paul E. McKenney committed 11 years ago

Commit 02ef3c41 parent 807226e2 files · +0 −15Browse files

Showing the changes to kernel/cpu.c (1 of 2 files). Show all

Unified · Split

kernel/cpu.c+0−13
@@ -102,19 +102,6 @@ void get_online_cpus(void) · 101 unmodified lines
102}102}
103EXPORT_SYMBOL_GPL(get_online_cpus);103EXPORT_SYMBOL_GPL(get_online_cpus);
104 104
105bool try_get_online_cpus(void)
106{
107 if (cpu_hotplug.active_writer == current)
108 return true;
109 if (!mutex_trylock(&cpu_hotplug.lock))
110 return false;
111 cpuhp_lock_acquire_tryread();
112 atomic_inc(&cpu_hotplug.refcount);
113 mutex_unlock(&cpu_hotplug.lock);
114 return true;
115}
116EXPORT_SYMBOL_GPL(try_get_online_cpus);
117
118void put_online_cpus(void)105void put_online_cpus(void)
119{106{
120 int refcount;107 int refcount;