All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: don't map io_apic two times.
@ 2009-05-20  5:23 Yinghai Lu
  2009-05-20  7:45 ` [PATCH] x86: don't allocate dummy page for wrong madt/mptable Yinghai Lu
  2009-05-20  7:58 ` [PATCH] x86: don't map io_apic two times Ingo Molnar
  0 siblings, 2 replies; 5+ messages in thread
From: Yinghai Lu @ 2009-05-20  5:23 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin; +Cc: linux-kernel@vger.kernel.org


mp_register_ioapic() already map it.

[ Impact: don't map io apic address again ]

Signed-off-by: Yinghai Lu <yinghai@kernel.org>

---
 arch/x86/kernel/apic/io_apic.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Index: linux-2.6/arch/x86/kernel/apic/io_apic.c
===================================================================
--- linux-2.6.orig/arch/x86/kernel/apic/io_apic.c
+++ linux-2.6/arch/x86/kernel/apic/io_apic.c
@@ -4162,7 +4162,12 @@ fake_ioapic_page:
 				alloc_bootmem_pages(PAGE_SIZE);
 			ioapic_phys = __pa(ioapic_phys);
 		}
-		set_fixmap_nocache(idx, ioapic_phys);
+		/*
+		 * when acpi ioapic is used, mp_register_ioapic() map
+		 * ioapic_phys already
+		 */
+		if (!acpi_ioapic)
+			set_fixmap_nocache(idx, ioapic_phys);
 		apic_printk(APIC_VERBOSE,
 			    "mapped IOAPIC to %08lx (%08lx)\n",
 			    __fix_to_virt(idx), ioapic_phys);

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

end of thread, other threads:[~2009-05-20 18:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-20  5:23 [PATCH] x86: don't map io_apic two times Yinghai Lu
2009-05-20  7:45 ` [PATCH] x86: don't allocate dummy page for wrong madt/mptable Yinghai Lu
2009-05-20 18:34   ` [PATCH, v2] " Yinghai Lu
2009-05-20  7:58 ` [PATCH] x86: don't map io_apic two times Ingo Molnar
2009-05-20  8:03   ` Yinghai Lu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.