summaryrefslogtreecommitdiffstats
path: root/kernel/up.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2013-11-14 23:32:08 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2013-11-15 01:32:22 +0100
commit40c01e8bd5575e32633192513e09eac7155d6926 (patch)
treebe91de11959816dd14b754963ea7b96de8714122 /kernel/up.c
parentkernel: remove CONFIG_USE_GENERIC_SMP_HELPERS (diff)
downloadlinux-40c01e8bd5575e32633192513e09eac7155d6926.tar.xz
linux-40c01e8bd5575e32633192513e09eac7155d6926.zip
kernel: provide a __smp_call_function_single stub for !CONFIG_SMP
Signed-off-by: Christoph Hellwig <hch@lst.de> Cc: Jan Kara <jack@suse.cz> Cc: Jens Axboe <axboe@kernel.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/up.c')
-rw-r--r--kernel/up.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/up.c b/kernel/up.c
index 630d72bf7e41..509403e3fbc6 100644
--- a/kernel/up.c
+++ b/kernel/up.c
@@ -22,6 +22,17 @@ int smp_call_function_single(int cpu, void (*func) (void *info), void *info,
}
EXPORT_SYMBOL(smp_call_function_single);
+void __smp_call_function_single(int cpu, struct call_single_data *csd,
+ int wait)
+{
+ unsigned long flags;
+
+ local_irq_save(flags);
+ csd->func(csd->info);
+ local_irq_restore(flags);
+}
+EXPORT_SYMBOL(__smp_call_function_single);
+
int on_each_cpu(smp_call_func_t func, void *info, int wait)
{
unsigned long flags;