x86, mm: Use max_pfn instead of highend_pfn
authorPekka Enberg <penberg@kernel.org>
Tue, 1 Nov 2011 13:58:18 +0000 (15:58 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 11 Nov 2011 09:22:45 +0000 (10:22 +0100)
The 'highend_pfn' variable is always set to 'max_pfn' so just
use the latter directly.

Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Link: http://lkml.kernel.org/r/1320155902-10424-3-git-send-email-penberg@kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/init_32.c

index 434c97d620c2cc511096b798a7265e7bdc45089c..5ac0118b7610a6b552f4abfa057d692460c976fa 100644 (file)
@@ -683,7 +683,7 @@ static void __init zone_sizes_init(void)
 #endif
        max_zone_pfns[ZONE_NORMAL] = max_low_pfn;
 #ifdef CONFIG_HIGHMEM
-       max_zone_pfns[ZONE_HIGHMEM] = highend_pfn;
+       max_zone_pfns[ZONE_HIGHMEM] = max_pfn;
 #endif
 
        free_area_init_nodes(max_zone_pfns);