up.c 413 Bytes
Newer Older
1 2 3 4
/*
 * Uniprocessor-only support functions.  The counterpart to kernel/smp.c
 */

5
#include <linux/interrupt.h>
6
#include <linux/kernel.h>
7
#include <linux/export.h>
8 9 10 11 12
#include <linux/smp.h>

int smp_call_function_single(int cpu, void (*func) (void *info), void *info,
				int wait)
{
13 14
	WARN_ON(cpu != 0);

15 16 17
	local_irq_disable();
	(func)(info);
	local_irq_enable();
18

19 20 21
	return 0;
}
EXPORT_SYMBOL(smp_call_function_single);