aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cpu.c')
-rw-r--r--kernel/cpu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c
index 0db8938fbb23..307486baa477 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -290,6 +290,12 @@ void cpus_read_lock(void)
290} 290}
291EXPORT_SYMBOL_GPL(cpus_read_lock); 291EXPORT_SYMBOL_GPL(cpus_read_lock);
292 292
293int cpus_read_trylock(void)
294{
295 return percpu_down_read_trylock(&cpu_hotplug_lock);
296}
297EXPORT_SYMBOL_GPL(cpus_read_trylock);
298
293void cpus_read_unlock(void) 299void cpus_read_unlock(void)
294{ 300{
295 percpu_up_read(&cpu_hotplug_lock); 301 percpu_up_read(&cpu_hotplug_lock);