public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -tip] x86,apic: Use PAGE_SIZE instead of numbers
@ 2009-11-08 15:53 Cyrill Gorcunov
  2009-11-08 16:09 ` [tip:x86/apic] x86, apic: " tip-bot for Cyrill Gorcunov
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Cyrill Gorcunov @ 2009-11-08 15:53 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Yinghai Lu, Maciej W. Rozycki, x86team, LKML

The whole page is reserved for IO-APIC fixmap
due to non-cacheable requirement. So lets note
this explicitly instead of playing with numbers.

CC: Yinghai Lu <yinghai@kernel.org>
CC: "Maciej W. Rozycki" <macro@linux-mips.org>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
---

Perhaps I miss something and (4 * 1024) have some special
meaning?

 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
@@ -4144,7 +4144,7 @@ fake_ioapic_page:
 		idx++;
 
 		ioapic_res->start = ioapic_phys;
-		ioapic_res->end = ioapic_phys + (4 * 1024) - 1;
+		ioapic_res->end = ioapic_phys + PAGE_SIZE - 1;
 		ioapic_res++;
 	}
 }

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

end of thread, other threads:[~2009-11-10  4:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-08 15:53 [PATCH -tip] x86,apic: Use PAGE_SIZE instead of numbers Cyrill Gorcunov
2009-11-08 16:09 ` [tip:x86/apic] x86, apic: " tip-bot for Cyrill Gorcunov
2009-11-08 17:28 ` [PATCH -tip] x86,apic: " Maciej W. Rozycki
2009-11-08 17:36   ` Cyrill Gorcunov
2009-11-08 18:03     ` Ingo Molnar
2009-11-09 23:07 ` H. Peter Anvin
2009-11-10  0:15   ` Maciej W. Rozycki
2009-11-10  4:40     ` Cyrill Gorcunov

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