x86, apic: Use PAGE_SIZE instead of numbers
authorCyrill Gorcunov <gorcunov@openvz.org>
Sun, 8 Nov 2009 15:53:56 +0000 (18:53 +0300)
committerIngo Molnar <mingo@elte.hu>
Sun, 8 Nov 2009 16:06:22 +0000 (17:06 +0100)
The whole page is reserved for IO-APIC fixmap
due to non-cacheable requirement. So lets note
this explicitly instead of playing with numbers.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Maciej W. Rozycki <macro@linux-mips.org>
LKML-Reference: <20091108155356.GB25940@lenovo>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/io_apic.c

index 31e9db3c12add5224cbf02c582d5427ce3fc4f8d..9ee1c1628c1723a9d1d2d8ec58cec78c350a0aff 100644 (file)
@@ -4111,7 +4111,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++;
        }
 }