From: Michal Simek Date: Thu, 15 Dec 2011 08:24:06 +0000 (+0100) Subject: microblaze: mm: Use ZONE_DMA instead of ZONE_NORMAL X-Git-Tag: MMI-PSA29.97-13-9~17072^2~19 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4e2e4124b7fe68b28e9f759b7ecc0ec16307fce6;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git microblaze: mm: Use ZONE_DMA instead of ZONE_NORMAL We should use ZONE_DMA because all address space is dma-able. Signed-off-by: Michal Simek --- diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig index c8d6efb99dbf..8e9da3d42814 100644 --- a/arch/microblaze/Kconfig +++ b/arch/microblaze/Kconfig @@ -27,6 +27,9 @@ config SWAP config RWSEM_GENERIC_SPINLOCK def_bool y +config ZONE_DMA + def_bool y + config RWSEM_XCHGADD_ALGORITHM bool diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index 565d193c7ebf..a72f42498c25 100644 --- a/arch/microblaze/mm/init.c +++ b/arch/microblaze/mm/init.c @@ -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); }