* [PATCH] Put memory in DMA zone not Normal zone in FRV arch
@ 2004-12-08 20:30 David Howells
0 siblings, 0 replies; only message in thread
From: David Howells @ 2004-12-08 20:30 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel
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@redhat.com>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-12-08 20:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-08 20:30 [PATCH] Put memory in DMA zone not Normal zone in FRV arch David Howells
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.