diff options
author | Huang, Ying <ying.huang@intel.com> | 2008-06-02 02:26:18 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-06-05 09:10:02 -0400 |
commit | d0ec2c6f2c2f0478b34ae78b3e65f60a561ac807 (patch) | |
tree | 4d4f6d1e11aa45bc4084e733f52d402e9582d1c7 /arch/x86/mm | |
parent | d3fbe5ea9518b46a68e6b278974e92e2c3acef4a (diff) |
x86: reserve highmem pages via reserve_early
This patch makes early reserved highmem pages become reserved
pages. This can be used for highmem pages allocated by bootloader such
as EFI memory map, linked list of setup_data, etc.
Signed-off-by: Huang Ying <ying.huang@intel.com>
Cc: andi@firstfloor.org
Cc: mingo@redhat.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/init_32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index ec30d10154b6..0e7bb5e81670 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c | |||
@@ -289,7 +289,8 @@ static void __init permanent_kmaps_init(pgd_t *pgd_base) | |||
289 | 289 | ||
290 | void __init add_one_highpage_init(struct page *page, int pfn, int bad_ppro) | 290 | void __init add_one_highpage_init(struct page *page, int pfn, int bad_ppro) |
291 | { | 291 | { |
292 | if (page_is_ram(pfn) && !(bad_ppro && page_kills_ppro(pfn))) { | 292 | if (page_is_ram(pfn) && !(bad_ppro && page_kills_ppro(pfn)) && |
293 | !page_is_reserved_early(pfn)) { | ||
293 | ClearPageReserved(page); | 294 | ClearPageReserved(page); |
294 | init_page_count(page); | 295 | init_page_count(page); |
295 | __free_page(page); | 296 | __free_page(page); |