]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] uml: get rid of ZONE_DMA use
authorJeff Dike <jdike@addtoit.com>
Wed, 27 Sep 2006 08:50:34 +0000 (01:50 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Sep 2006 15:26:15 +0000 (08:26 -0700)
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>
arch/um/kernel/mem.c

index 93121c6d26e55594fe8bb505ebdd17ef20de145c..c95855ba6ab576f7063f3bdf825efb8182a13b9a 100644 (file)
@@ -226,7 +226,8 @@ void paging_init(void)
        for(i = 0; i < ARRAY_SIZE(zones_size); i++)
                zones_size[i] = 0;
 
-       zones_size[ZONE_DMA] = (end_iomem >> PAGE_SHIFT) - (uml_physmem >> PAGE_SHIFT);
+       zones_size[ZONE_NORMAL] = (end_iomem >> PAGE_SHIFT) -
+               (uml_physmem >> PAGE_SHIFT);
 #ifdef CONFIG_HIGHMEM
        zones_size[ZONE_HIGHMEM] = highmem >> PAGE_SHIFT;
 #endif