This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
2009-01-09 20:27:08 +00:00
|
|
|
/*
|
|
|
|
* Uniprocessor-only support functions. The counterpart to kernel/smp.c
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/smp.h>
|
|
|
|
|
|
|
|
int smp_call_function_single(int cpu, void (*func) (void *info), void *info,
|
|
|
|
int wait)
|
|
|
|
{
|
2009-01-11 04:15:21 +00:00
|
|
|
WARN_ON(cpu != 0);
|
|
|
|
|
2009-01-09 20:27:08 +00:00
|
|
|
local_irq_disable();
|
|
|
|
(func)(info);
|
|
|
|
local_irq_enable();
|
2009-01-11 04:15:21 +00:00
|
|
|
|
2009-01-09 20:27:08 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
EXPORT_SYMBOL(smp_call_function_single);
|