Blame view
kernel/up.c
413 Bytes
53ce3d956 smp_call_function... |
1 2 3 |
/* * Uniprocessor-only support functions. The counterpart to kernel/smp.c */ |
6e9628141 smp_call_function... |
4 |
#include <linux/interrupt.h> |
53ce3d956 smp_call_function... |
5 6 7 8 9 10 11 |
#include <linux/kernel.h> #include <linux/module.h> #include <linux/smp.h> int smp_call_function_single(int cpu, void (*func) (void *info), void *info, int wait) { |
93423b866 smp_call_function... |
12 |
WARN_ON(cpu != 0); |
53ce3d956 smp_call_function... |
13 14 15 |
local_irq_disable(); (func)(info); local_irq_enable(); |
93423b866 smp_call_function... |
16 |
|
53ce3d956 smp_call_function... |
17 18 19 |
return 0; } EXPORT_SYMBOL(smp_call_function_single); |