Put memory in DMA zone not Normal zone in FRV arch
PATCH 1/1 Put memory in DMA zone not Normal zone in FRV arch
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 <[email protected]>
---
warthog>diffstat frv-memzone-2610rc2mm3-3.diff
init.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/frv/mm/init.c +2 -2
@@ -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