blob: 1ff27a28bb7d4a11d7cb23935675bd9e41c0ac83 [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>
7#include <linux/module.h>
8#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);