* [PATCH 2/8] UML - Get rid of ZONE_DMA use
@ 2006-09-25 18:34 Jeff Dike
0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2006-09-25 18:34 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, user-mode-linux-devel
ZONE_DMA is now dependent on CONFIG_ZONE_DMA, which UML doesn't define.
So, let's change ZONE_DMA to ZONE_NORMAL.
This is prompted by optional-zone_dma-in-the-vm.patch, but should be harmless
on its own.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Index: linux-2.6.18-mm/arch/um/kernel/mem.c
===================================================================
--- linux-2.6.18-mm.orig/arch/um/kernel/mem.c 2006-09-22 13:17:47.000000000 -0400
+++ linux-2.6.18-mm/arch/um/kernel/mem.c 2006-09-22 13:18:11.000000000 -0400
@@ -226,7 +226,8 @@ void paging_init(void)
for(i = 0; i < ARRAY_SIZE(zones_size); i++)
zones_size[i] = 0;
- zones_size[ZONE_DMA] = (end_iomem >> PAGE_SHIFT) - (uml_physmem >> PAGE_SHIFT);
+ zones_size[ZONE_NORMAL] = (end_iomem >> PAGE_SHIFT) -
+ (uml_physmem >> PAGE_SHIFT);
#ifdef CONFIG_HIGHMEM
zones_size[ZONE_HIGHMEM] = highmem >> PAGE_SHIFT;
#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-09-25 18:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-25 18:34 [PATCH 2/8] UML - Get rid of ZONE_DMA use Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).