diff options
Diffstat (limited to 'kernel/up.c')
-rw-r--r-- | kernel/up.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/up.c b/kernel/up.c index b1cf036..630d72b 100644 --- a/kernel/up.c +++ b/kernel/up.c @@ -22,6 +22,17 @@ int smp_call_function_single(int cpu, void (*func) (void *info), void *info, } EXPORT_SYMBOL(smp_call_function_single); +int on_each_cpu(smp_call_func_t func, void *info, int wait) +{ + unsigned long flags; + + local_irq_save(flags); + func(info); + local_irq_restore(flags); + return 0; +} +EXPORT_SYMBOL(on_each_cpu); + /* * Note we still need to test the mask even for UP * because we actually can get an empty mask from |