Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] remove direct ref to contig_page_data for x86-64

This patch pulls out all remaining direct references to contig_page_data
from arch/x86-64, thus saving an ifdef in one case.

Signed-off-by: Matt Tolentino <matthew.e.tolentino@intel.com>
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Matt Tolentino and committed by
Linus Torvalds
07332663 145e6642

+1 -5
-4
arch/x86_64/kernel/aperture.c
··· 40 40 41 41 static u32 __init allocate_aperture(void) 42 42 { 43 - #ifdef CONFIG_DISCONTIGMEM 44 43 pg_data_t *nd0 = NODE_DATA(0); 45 - #else 46 - pg_data_t *nd0 = &contig_page_data; 47 - #endif 48 44 u32 aper_size; 49 45 void *p; 50 46
+1 -1
arch/x86_64/kernel/setup.c
··· 386 386 if (bootmap == -1L) 387 387 panic("Cannot find bootmem map of size %ld\n",bootmap_size); 388 388 bootmap_size = init_bootmem(bootmap >> PAGE_SHIFT, end_pfn); 389 - e820_bootmem_free(&contig_page_data, 0, end_pfn << PAGE_SHIFT); 389 + e820_bootmem_free(NODE_DATA(0), 0, end_pfn << PAGE_SHIFT); 390 390 reserve_bootmem(bootmap, bootmap_size); 391 391 } 392 392 #endif