aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic_32.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2008-06-05 22:27:49 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 03:13:17 -0400
commitacae7d906f2f81d814e9c3730eeb19dfd3bf3bb4 (patch)
tree5c1ad5b6fcc538cf88102a9f7101252259787ac6 /arch/x86/kernel/apic_32.c
parent148b50830993acc67129f09c544d9167291e5458 (diff)
x86: APIC/UP: Downgrade the NMI watchdog for no I/O APIC
If configured to use the I/O APIC, the NMI watchdog is deemed to fail if the chip will not be used in the UP configuration, because "noapic" has been specified or the chip is simply not there. Downgrade to the local APIC watchdog to rectify. The new #ifdef is ugly, I know. A proper solution is to provide suitable definitions of smp_found_config, etc. for !CONFIG_X86_IO_APIC in a header. Likewise the whole if () condition should be moved to a static inline function. Such clean-ups are beyond the scope of this change and can be done once the whole issue of the timer has been sorted out. Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic_32.c')
-rw-r--r--arch/x86/kernel/apic_32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c
index 4b99b1bdeb6c..26e7a62e9ab6 100644
--- a/arch/x86/kernel/apic_32.c
+++ b/arch/x86/kernel/apic_32.c
@@ -1269,6 +1269,10 @@ int __init APIC_init_uniprocessor(void)
1269 1269
1270 setup_local_APIC(); 1270 setup_local_APIC();
1271 1271
1272#ifdef CONFIG_X86_IO_APIC
1273 if (!smp_found_config || skip_ioapic_setup || !nr_ioapics)
1274#endif
1275 localise_nmi_watchdog();
1272 end_local_APIC_setup(); 1276 end_local_APIC_setup();
1273#ifdef CONFIG_X86_IO_APIC 1277#ifdef CONFIG_X86_IO_APIC
1274 if (smp_found_config) 1278 if (smp_found_config)