diff options
author | Jeff Dike <jdike@addtoit.com> | 2006-09-27 04:50:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 11:26:15 -0400 |
commit | 0715501bf1d915002d92e34e8a78ea889e5a0049 (patch) | |
tree | 38dd7f8144ba7c754e47300ea2eb499301422846 /arch/um/kernel/mem.c | |
parent | 5e7672ec3f059f764fcc5c78216e24bb16c44dba (diff) |
[PATCH] uml: get rid of ZONE_DMA use
ZONE_DMA might become dependent on CONFIG_ZONE_DMA, which UML doesn't define
(we're still arguing about this) So, let's change ZONE_DMA to ZONE_NORMAL.
This is prompted by optional-zone_dma-in-the-vm.patch, but should be harmless
on its own.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Christoph Lameter <clameter@engr.sgi.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/kernel/mem.c')
-rw-r--r-- | arch/um/kernel/mem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c index 93121c6d26e5..c95855ba6ab5 100644 --- a/arch/um/kernel/mem.c +++ b/arch/um/kernel/mem.c | |||
@@ -226,7 +226,8 @@ void paging_init(void) | |||
226 | for(i = 0; i < ARRAY_SIZE(zones_size); i++) | 226 | for(i = 0; i < ARRAY_SIZE(zones_size); i++) |
227 | zones_size[i] = 0; | 227 | zones_size[i] = 0; |
228 | 228 | ||
229 | zones_size[ZONE_DMA] = (end_iomem >> PAGE_SHIFT) - (uml_physmem >> PAGE_SHIFT); | 229 | zones_size[ZONE_NORMAL] = (end_iomem >> PAGE_SHIFT) - |
230 | (uml_physmem >> PAGE_SHIFT); | ||
230 | #ifdef CONFIG_HIGHMEM | 231 | #ifdef CONFIG_HIGHMEM |
231 | zones_size[ZONE_HIGHMEM] = highmem >> PAGE_SHIFT; | 232 | zones_size[ZONE_HIGHMEM] = highmem >> PAGE_SHIFT; |
232 | #endif | 233 | #endif |