x86, VisWS: turn into generic arch, enhance include/asm-x86/mach-default/smpboot_hooks.h
Allow the generic smpboot quirks code to be built with ONFIG_X86_IO_APIC disabled. This way VISWS will be able to use it as-is. Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
@@ -3,7 +3,9 @@
|
|||||||
|
|
||||||
static inline void smpboot_clear_io_apic_irqs(void)
|
static inline void smpboot_clear_io_apic_irqs(void)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_X86_IO_APIC
|
||||||
io_apic_irqs = 0;
|
io_apic_irqs = 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void smpboot_setup_warm_reset_vector(unsigned long start_eip)
|
static inline void smpboot_setup_warm_reset_vector(unsigned long start_eip)
|
||||||
@@ -35,6 +37,7 @@ static inline void smpboot_restore_warm_reset_vector(void)
|
|||||||
|
|
||||||
static inline void __init smpboot_setup_io_apic(void)
|
static inline void __init smpboot_setup_io_apic(void)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_X86_IO_APIC
|
||||||
/*
|
/*
|
||||||
* Here we can be sure that there is an IO-APIC in the system. Let's
|
* Here we can be sure that there is an IO-APIC in the system. Let's
|
||||||
* go and set it up:
|
* go and set it up:
|
||||||
@@ -45,9 +48,12 @@ static inline void __init smpboot_setup_io_apic(void)
|
|||||||
nr_ioapics = 0;
|
nr_ioapics = 0;
|
||||||
localise_nmi_watchdog();
|
localise_nmi_watchdog();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void smpboot_clear_io_apic(void)
|
static inline void smpboot_clear_io_apic(void)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_X86_IO_APIC
|
||||||
nr_ioapics = 0;
|
nr_ioapics = 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user