Skip to contentSkip to conversation

optional ZONE_DMA for s390

PATCH In review Heiko Carstens 2 participants 2 messages Oct 24, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 optional ZONE_DMA for s390

From: Heiko Carstens <[email protected]>

For non-64BIT systems all memory is DMA capable.

Cc Christoph Lameter <[email protected]>
Cc Martin Schwidefsky <[email protected]>
---
 arch/s390/Kconfig   |    4 ++--
 arch/s390/mm/init.c |    1 -
 2 files changed, 2 insertions(+), 3 deletions(-)
arch/s390/Kconfig +2 -2
Index: linux-2.6.19-rc2-mm2/arch/s390/Kconfig
===================================================================
@@ -8,8 +8,8 @@
 	default y
 
 config ZONE_DMA
-	bool
-	default y
+	def_bool y
+	depends on 64BIT
 
 config LOCKDEP_SUPPORT
 	bool
arch/s390/mm/init.c +0 -1
Index: linux-2.6.19-rc2-mm2/arch/s390/mm/init.c
===================================================================
@@ -106,7 +106,6 @@
 	ro_end_pfn = PFN_UP((unsigned long)&__end_rodata);
 
 	memset(max_zone_pfns, 0, sizeof(max_zone_pfns));
-	max_zone_pfns[ZONE_DMA] = max_low_pfn;
 	max_zone_pfns[ZONE_NORMAL] = max_low_pfn;
 	free_area_init_nodes(max_zone_pfns);