m68knommu: mark all RAM as ZONE_DMA

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, April 3, 2009 - 11:02 am

Gitweb:     http://git.kernel.org/linus/dffc9efc562b8a2180e86df9f733cb113ba94b33
Commit:     dffc9efc562b8a2180e86df9f733cb113ba94b33
Parent:     8e0ee43bc2c3e19db56a4adaa9a9b04ce885cd84
Author:     Greg Ungerer <gerg@uclinux.org>
AuthorDate: Wed Jan 28 17:07:19 2009 +1000
Committer:  Greg Ungerer <gerg@uclinux.org>
CommitDate: Tue Mar 24 15:17:41 2009 +1000

    m68knommu: mark all RAM as ZONE_DMA
    
    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 |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/arch/m68knommu/mm/init.c b/arch/m68knommu/mm/init.c
index 3bf249c..7befc0c 100644
--- a/arch/m68knommu/mm/init.c
+++ b/arch/m68knommu/mm/init.c
@@ -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);
 	}
 }
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
m68knommu: mark all RAM as ZONE_DMA, Linux Kernel Mailing ..., (Fri Apr 3, 11:02 am)