[PATCH] Fix bad apic fix on i386
authorAndi Kleen <ak@suse.de>
Tue, 7 Feb 2006 11:48:00 +0000 (12:48 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 7 Feb 2006 18:08:38 +0000 (10:08 -0800)
Fix wrong '!' in bad apic fix

I forgot to remove the ! when moving the code from x86-64 to i386 x86-64
tested !disable_apic, but of course for cpu_has_apic it shouldn't be
negated.

Credit goes to Jan Beulich for spotting it with eagle eyes.

Cc: Jan Beulich <jbeulich@novell.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/apic.c

index 98a5c23cf3df2c2251e0f64a16e294ba696a981d..f39e09ef64ecba8655752362e6cda92e18c5e90f 100644 (file)
@@ -77,7 +77,7 @@ void ack_bad_irq(unsigned int irq)
         * completely.
         * But only ack when the APIC is enabled -AK
         */
-       if (!cpu_has_apic)
+       if (cpu_has_apic)
                ack_APIC_irq();
 }