public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -tip] x86,apic -- don't forget to disconnect BSP discrete apic
@ 2009-07-08 20:07 Cyrill Gorcunov
  2009-07-08 21:33 ` H. Peter Anvin
  0 siblings, 1 reply; 4+ messages in thread
From: Cyrill Gorcunov @ 2009-07-08 20:07 UTC (permalink / raw)
  To: Ingo Molnar, H. Peter Anvin
  Cc: Thomas Gleixner, Maciej W. Rozycki, Vegard Nossum, LKML

In case of discrete APIC cpu_has_apic could be not set.
This leads to disconnect_bsp_APIC is not called where
it should.

Tested-by: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
---

Please review.

 arch/x86/kernel/apic/io_apic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.git/arch/x86/kernel/apic/io_apic.c
=====================================================================
--- linux-2.6.git.orig/arch/x86/kernel/apic/io_apic.c
+++ linux-2.6.git/arch/x86/kernel/apic/io_apic.c
@@ -2002,7 +2002,7 @@ void disable_IO_APIC(void)
 	/*
 	 * Use virtual wire A mode when interrupt remapping is enabled.
 	 */
-	if (cpu_has_apic)
+	if (cpu_has_apic || smp_found_config)
 		disconnect_bsp_APIC(!intr_remapping_enabled &&
 				ioapic_i8259.pin != -1);
 }

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-09  3:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-08 20:07 [PATCH -tip] x86,apic -- don't forget to disconnect BSP discrete apic Cyrill Gorcunov
2009-07-08 21:33 ` H. Peter Anvin
2009-07-09  3:04   ` Cyrill Gorcunov
2009-07-09  3:45     ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox