fed up with those stupid warnings
[mmotm.git] / kernel / up.c
blob06bf032e4d13c7c8b1538a4d23e7945580f93972
1 /*
2 * Uniprocessor-only support functions. The counterpart to kernel/smp.c
3 */
5 #include <linux/interrupt.h>
6 #include <linux/kernel.h>
7 #include <linux/module.h>
8 #include <linux/smp.h>
10 int smp_call_function_single(int cpu, void (*func) (void *info), void *info,
11 int wait)
13 WARN_ON(cpu != 0);
15 local_irq_disable();
16 (func)(info);
17 local_irq_enable();
19 return 0;
21 EXPORT_SYMBOL(smp_call_function_single);
23 int smp_call_function_any(const struct cpumask *mask,
24 void (*func)(void *info), void *info,
25 int wait)
27 local_irq_disable();
28 (func)(info);
29 local_irq_enable();
31 return 0;
33 EXPORT_SYMBOL_GPL(smp_call_function_any);