]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
microblaze: mm: Use ZONE_DMA instead of ZONE_NORMAL
authorMichal Simek <monstr@monstr.eu>
Thu, 15 Dec 2011 08:24:06 +0000 (09:24 +0100)
committerMichal Simek <monstr@monstr.eu>
Fri, 23 Mar 2012 08:28:09 +0000 (09:28 +0100)
We should use ZONE_DMA because all address space is dma-able.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/Kconfig
arch/microblaze/mm/init.c

index c8d6efb99dbf668b7f283f23624c2f50f632c442..8e9da3d428145abcf43192ac47cf965d61948aef 100644 (file)
@@ -27,6 +27,9 @@ config SWAP
 config RWSEM_GENERIC_SPINLOCK
        def_bool y
 
+config ZONE_DMA
+       def_bool y
+
 config RWSEM_XCHGADD_ALGORITHM
        bool
 
index 565d193c7ebfd8b307ac3efc8913bda4968dcbcd..a72f42498c25b78c9d7a21fa550d71ff47e24199 100644 (file)
@@ -58,11 +58,7 @@ static void __init paging_init(void)
        /* Clean every zones */
        memset(zones_size, 0, sizeof(zones_size));
 
-       /*
-        * old: we can DMA to/from any address.put all page into ZONE_DMA
-        * We use only ZONE_NORMAL
-        */
-       zones_size[ZONE_NORMAL] = max_mapnr;
+       zones_size[ZONE_DMA] = max_mapnr;
 
        free_area_init(zones_size);
 }