[PATCH] Put memory in DMA zone not Normal zone in FRV arch

From: David Howells
Date: Wed Dec 08 2004 - 15:33:13 EST



The attached patch makes the FR-V arch put all its memory in the DMA zone
rather than the Normal zone since all the memory is available as a DMA target.

Signed-Off-By: David Howells <dhowells@xxxxxxxxxx>
---
warthog>diffstat frv-memzone-2610rc2mm3-3.diff
init.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff -uNrp linux-2.6.10-rc2-mm3-mmcleanup/arch/frv/mm/init.c linux-2.6.10-rc2-mm3-shmem/arch/frv/mm/init.c
--- linux-2.6.10-rc2-mm3-mmcleanup/arch/frv/mm/init.c 2004-11-22 10:53:41.000000000 +0000
+++ linux-2.6.10-rc2-mm3-shmem/arch/frv/mm/init.c 2004-12-01 16:03:56.000000000 +0000
@@ -125,8 +125,8 @@ void __init paging_init(void)

/* distribute the allocatable pages across the various zones and pass them to the allocator
*/
- zones_size[ZONE_DMA] = 0 >> PAGE_SHIFT;
- zones_size[ZONE_NORMAL] = max_low_pfn - min_low_pfn;
+ zones_size[ZONE_DMA] = max_low_pfn - min_low_pfn;
+ zones_size[ZONE_NORMAL] = 0;
#ifdef CONFIG_HIGHMEM
zones_size[ZONE_HIGHMEM] = num_physpages - num_mappedpages;
#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/