percpu, x86: don't use PMD_SIZE as embedded atom_size on 32bit
[zen-stable.git] / kernel / up.c
blobc54c75e9faf7a68446c1a5e80f3713af0cc64117
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/export.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);