Skip to content

Commit

Permalink
x86, apic: Use PAGE_SIZE instead of numbers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Nov 8, 2009
1 parent 5231a68 commit 46dc281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/apic/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -4111,7 +4111,7 @@ void __init ioapic_init_mappings(void)
idx++;

ioapic_res->start = ioapic_phys;
ioapic_res->end = ioapic_phys + (4 * 1024) - 1;
ioapic_res->end = ioapic_phys + PAGE_SIZE-1;
ioapic_res++;
}
}
Expand Down

0 comments on commit 46dc281

Please sign in to comment.