]> git.karo-electronics.de Git - linux-beck.git/commitdiff
m68knommu: mark all RAM as ZONE_DMA
authorGreg Ungerer <gerg@uclinux.org>
Wed, 28 Jan 2009 07:07:19 +0000 (17:07 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 24 Mar 2009 05:17:41 +0000 (15:17 +1000)
There is no reason not to put all RAM in ZONE_DMA for these simple
m68k varients (same as the standard MMU m68k code does). With this
in place the usual dma_alloc_coherent() work as expected.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68knommu/mm/init.c

index 3bf249c53e414834114bc845dde4b63afe8e2add..7befc0c357e0850a1635032c26c1632bd580c38c 100644 (file)
@@ -111,11 +111,7 @@ void __init paging_init(void)
        {
                unsigned long zones_size[MAX_NR_ZONES] = {0, };
 
-               zones_size[ZONE_DMA] = 0 >> PAGE_SHIFT;
-               zones_size[ZONE_NORMAL] = (end_mem - PAGE_OFFSET) >> PAGE_SHIFT;
-#ifdef CONFIG_HIGHMEM
-               zones_size[ZONE_HIGHMEM] = 0;
-#endif
+               zones_size[ZONE_DMA] = (end_mem - PAGE_OFFSET) >> PAGE_SHIFT;
                free_area_init(zones_size);
        }
 }