Skip to content

Commit

Permalink
x86: fix apic.c build error on latest git
Browse files Browse the repository at this point in the history
Fix this by reintroducing asm/smp.h include in apic.c - later on
I will fix this by removing non-smp data from smp.h

Also fix the __inquire_remote_apic() prototype/inline.

Signed-off-by: Jaswinder Singh Rajput <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Jaswinder Singh Rajput authored and Ingo Molnar committed Jan 12, 2009
1 parent 4884d8e commit 2bc1379
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/x86/include/asm/mach-default/mach_wakecpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ static inline void restore_NMI_vector(unsigned short *high, unsigned short *low)
{
}

#ifdef CONFIG_SMP
extern void __inquire_remote_apic(int apicid);
#else /* CONFIG_SMP */
static inline void __inquire_remote_apic(int apicid)
{
}
#endif /* CONFIG_SMP */

static inline void inquire_remote_apic(int apicid)
{
Expand Down
1 change: 1 addition & 0 deletions arch/x86/kernel/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <asm/proto.h>
#include <asm/apic.h>
#include <asm/i8259.h>
#include <asm/smp.h>

#include <mach_apic.h>
#include <mach_apicdef.h>
Expand Down

0 comments on commit 2bc1379

Please sign in to comment.