diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-03-04 03:16:07 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-04 13:00:51 -0500 |
commit | 6298e719cf388f43b674f43799af467d3e4e5aa7 (patch) | |
tree | d4b5c7d1ef8485d2b1a2d03effeae39ba3738684 | |
parent | 540aca06b737cc38965b52eeceefba3d24376461 (diff) |
x86: set_highmem_pages_init() cleanup, #2
Impact: cleanup
The zones are set up at this stage so there's a highmem zone
available even for the UMA case.
The only difference there is that for machines that have
CONFIG_HIGHMEM enabled but don't have any highmem available,
->zone_start_pfn is zero whereas highstart_pfn is non-zero).
The field is left zeroed because of the !size test in
free_area_init_core() but shouldn't be a problem because
add_highpages_with_active_regions() handles empty ranges just
fine.
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Mel Gorman <mel@csn.ul.ie>
LKML-Reference: <1236154567.29024.23.camel@penberg-laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/mm/highmem_32.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/x86/mm/highmem_32.c b/arch/x86/mm/highmem_32.c index 00f127c80b0e..d11745334a67 100644 --- a/arch/x86/mm/highmem_32.c +++ b/arch/x86/mm/highmem_32.c | |||
@@ -158,7 +158,6 @@ EXPORT_SYMBOL(kunmap); | |||
158 | EXPORT_SYMBOL(kmap_atomic); | 158 | EXPORT_SYMBOL(kmap_atomic); |
159 | EXPORT_SYMBOL(kunmap_atomic); | 159 | EXPORT_SYMBOL(kunmap_atomic); |
160 | 160 | ||
161 | #ifdef CONFIG_NUMA | ||
162 | void __init set_highmem_pages_init(void) | 161 | void __init set_highmem_pages_init(void) |
163 | { | 162 | { |
164 | struct zone *zone; | 163 | struct zone *zone; |
@@ -182,11 +181,3 @@ void __init set_highmem_pages_init(void) | |||
182 | } | 181 | } |
183 | totalram_pages += totalhigh_pages; | 182 | totalram_pages += totalhigh_pages; |
184 | } | 183 | } |
185 | #else | ||
186 | void __init set_highmem_pages_init(void) | ||
187 | { | ||
188 | add_highpages_with_active_regions(0, highstart_pfn, highend_pfn); | ||
189 | |||
190 | totalram_pages += totalhigh_pages; | ||
191 | } | ||
192 | #endif /* CONFIG_NUMA */ | ||