Commit 4e2e4124 authored by Michal Simek's avatar Michal Simek

microblaze: mm: Use ZONE_DMA instead of ZONE_NORMAL

We should use ZONE_DMA because all address space is dma-able.
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent f7f4786c
...@@ -27,6 +27,9 @@ config SWAP ...@@ -27,6 +27,9 @@ config SWAP
config RWSEM_GENERIC_SPINLOCK config RWSEM_GENERIC_SPINLOCK
def_bool y def_bool y
config ZONE_DMA
def_bool y
config RWSEM_XCHGADD_ALGORITHM config RWSEM_XCHGADD_ALGORITHM
bool bool
......
...@@ -58,11 +58,7 @@ static void __init paging_init(void) ...@@ -58,11 +58,7 @@ static void __init paging_init(void)
/* Clean every zones */ /* Clean every zones */
memset(zones_size, 0, sizeof(zones_size)); memset(zones_size, 0, sizeof(zones_size));
/* zones_size[ZONE_DMA] = max_mapnr;
* 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;
free_area_init(zones_size); free_area_init(zones_size);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment