kernel: provide a __smp_call_function_single stub for !CONFIG_SMP
authorChristoph Hellwig <hch@infradead.org>
Thu, 14 Nov 2013 22:32:08 +0000 (14:32 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Nov 2013 00:32:22 +0000 (09:32 +0900)
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>
kernel/up.c

index 630d72bf7e4173d2c47272ea7ce63012007ab192..509403e3fbc6b5bffbef9ecaa47cad6c68c03c3f 100644 (file)
@@ -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;