aboutsummaryrefslogtreecommitdiff
path: root/kernel/up.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/up.c')
-rw-r--r--kernel/up.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/up.c b/kernel/up.c
index ce62cc9e9f7..c04b9dcfceb 100644
--- a/kernel/up.c
+++ b/kernel/up.c
@@ -9,10 +9,12 @@
int smp_call_function_single(int cpu, void (*func) (void *info), void *info,
int wait)
{
- WARN_ON(cpuid != 0);
+ WARN_ON(cpu != 0);
+
local_irq_disable();
(func)(info);
local_irq_enable();
+
return 0;
}
EXPORT_SYMBOL(smp_call_function_single);