]> git.baikalelectronics.ru Git - kernel.git/commit
x86: APIC/UP: Downgrade the NMI watchdog for no I/O APIC
authorMaciej W. Rozycki <macro@linux-mips.org>
Fri, 6 Jun 2008 02:27:49 +0000 (03:27 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 07:13:17 +0000 (09:13 +0200)
commitbdca58b28d752cae8cc59ba38557971129b0e7c1
tree5c1ad5b6fcc538cf88102a9f7101252259787ac6
parent82ba2785caa2f456a9c940c3f56dc08e3ed337a0
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>
arch/x86/kernel/apic_32.c
arch/x86/kernel/apic_64.c