blob: c54c75e9faf7a68446c1a5e80f3713af0cc64117 [file] [log] [blame]
Andrew Morton53ce3d92009-01-09 12:27:08 -08001/*
2 * Uniprocessor-only support functions. The counterpart to kernel/smp.c
3 */
4
Ingo Molnar6e962812009-01-12 16:04:37 +01005#include <linux/interrupt.h>
Andrew Morton53ce3d92009-01-09 12:27:08 -08006#include <linux/kernel.h>
Paul Gortmaker9984de12011-05-23 14:51:41 -04007#include <linux/export.h>
Andrew Morton53ce3d92009-01-09 12:27:08 -08008#include <linux/smp.h>
9
10int smp_call_function_single(int cpu, void (*func) (void *info), void *info,
11 int wait)
12{
Ingo Molnar93423b82009-01-11 05:15:21 +010013 WARN_ON(cpu != 0);
14
Andrew Morton53ce3d92009-01-09 12:27:08 -080015 local_irq_disable();
16 (func)(info);
17 local_irq_enable();
Ingo Molnar93423b82009-01-11 05:15:21 +010018
Andrew Morton53ce3d92009-01-09 12:27:08 -080019 return 0;
20}
21EXPORT_SYMBOL(smp_call_function_single);