diff options
author | Pekka Enberg <penberg@kernel.org> | 2011-11-01 15:58:19 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-11-11 10:22:48 +0100 |
commit | 80b3cac97bc14fdf839d967602e599cbf82ea336 (patch) | |
tree | d273ef1d4096b77679ce4e69df0fa2a065dfeaaa /arch | |
parent | e4794640ca408acda18eb31b126f58a58803b9c9 (diff) | |
download | linux-80b3cac97bc14fdf839d967602e599cbf82ea336.tar.gz linux-80b3cac97bc14fdf839d967602e599cbf82ea336.tar.bz2 linux-80b3cac97bc14fdf839d967602e599cbf82ea336.zip |
x86, mm: Wrap ZONE_DMA32 with CONFIG_ZONE_DMA32
In preparation for unifying 32-bit and 64-bit zone_sizes_init()
make sure ZONE_DMA32 is wrapped in CONFIG_ZONE_DMA32.
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Arun Sharma <asharma@fb.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Link: http://lkml.kernel.org/r/1320155902-10424-4-git-send-email-penberg@kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/mm/init_64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 3ddda59f7087..a9214e6e721a 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c @@ -620,7 +620,9 @@ static void __init zone_sizes_init(void) #ifdef CONFIG_ZONE_DMA max_zone_pfns[ZONE_DMA] = MAX_DMA_PFN; #endif +#ifdef CONFIG_ZONE_DMA32 max_zone_pfns[ZONE_DMA32] = MAX_DMA32_PFN; +#endif max_zone_pfns[ZONE_NORMAL] = max_pfn; free_area_init_nodes(max_zone_pfns); |