| Andrew Morton | 53ce3d9 | 2009-01-09 12:27:08 -0800 | [diff] [blame] | 1 | /* | 
 | 2 |  * Uniprocessor-only support functions.  The counterpart to kernel/smp.c | 
 | 3 |  */ | 
 | 4 |  | 
| Ingo Molnar | 6e96281 | 2009-01-12 16:04:37 +0100 | [diff] [blame] | 5 | #include <linux/interrupt.h> | 
| Andrew Morton | 53ce3d9 | 2009-01-09 12:27:08 -0800 | [diff] [blame] | 6 | #include <linux/kernel.h> | 
 | 7 | #include <linux/module.h> | 
 | 8 | #include <linux/smp.h> | 
 | 9 |  | 
 | 10 | int smp_call_function_single(int cpu, void (*func) (void *info), void *info, | 
 | 11 | 				int wait) | 
 | 12 | { | 
| Ingo Molnar | 93423b8 | 2009-01-11 05:15:21 +0100 | [diff] [blame] | 13 | 	WARN_ON(cpu != 0); | 
 | 14 |  | 
| Andrew Morton | 53ce3d9 | 2009-01-09 12:27:08 -0800 | [diff] [blame] | 15 | 	local_irq_disable(); | 
 | 16 | 	(func)(info); | 
 | 17 | 	local_irq_enable(); | 
| Ingo Molnar | 93423b8 | 2009-01-11 05:15:21 +0100 | [diff] [blame] | 18 |  | 
| Andrew Morton | 53ce3d9 | 2009-01-09 12:27:08 -0800 | [diff] [blame] | 19 | 	return 0; | 
 | 20 | } | 
 | 21 | EXPORT_SYMBOL(smp_call_function_single); |