x86: Fix bogus warning in apic_noop.apic_write()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 7 Dec 2009 11:59:46 +0000 (12:59 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 7 Dec 2009 12:16:37 +0000 (13:16 +0100)
commita946d8f11f0da9cfc714248036fcfd3a794d1e27
treeb6bdf7840edf56397e8bd719f29158ab62a0ce24
parentf3d607c6b39bd9cb5000e03e2c0dc2afe1241374
x86: Fix bogus warning in apic_noop.apic_write()

apic_noop is used to provide dummy apic functions. It's installed
when the CPU has no APIC or when the APIC is disabled on the kernel
command line.

The apic_noop implementation of apic_write() warns when the CPU has
an APIC or when the APIC is not disabled.

That's bogus. The warning should only happen when the CPU has an
APIC _AND_ the APIC is not disabled. apic_noop.apic_read() has the
correct check.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: <stable@kernel.org> # in <= .32 this typo resides in native_apic_write_dummy()
LKML-Reference: <alpine.LFD.2.00.0912071255420.3089@localhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/apic_noop.c