提交 93423b86 编写于 作者: I Ingo Molnar

smp_call_function_single(): be slightly less stupid, fix

Impact: build fix on Alpha

 kernel/up.c: In function 'smp_call_function_single':
 kernel/up.c:12: error: 'cpuid' undeclared (first use in this function)
 kernel/up.c:12: error: (Each undeclared identifier is reported only once
 kernel/up.c:12: error: for each function it appears in.)

The typo didnt show up on x86 because 'cpuid' happens to be a
function address as well ...
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 53ce3d95
...@@ -9,10 +9,12 @@ ...@@ -9,10 +9,12 @@
int smp_call_function_single(int cpu, void (*func) (void *info), void *info, int smp_call_function_single(int cpu, void (*func) (void *info), void *info,
int wait) int wait)
{ {
WARN_ON(cpuid != 0); WARN_ON(cpu != 0);
local_irq_disable(); local_irq_disable();
(func)(info); (func)(info);
local_irq_enable(); local_irq_enable();
return 0; return 0;
} }
EXPORT_SYMBOL(smp_call_function_single); EXPORT_SYMBOL(smp_call_function_single);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册