Skip to content

Commit

Permalink
smp_call_function_single(): be slightly less stupid, fix
Browse files Browse the repository at this point in the history
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: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Jan 11, 2009
1 parent 53ce3d9 commit 93423b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel/up.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 93423b8

Please sign in to comment.