[S390] Optional ZONE_DMA for s390.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 21 Feb 2007 09:55:12 +0000 (10:55 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 21 Feb 2007 09:55:12 +0000 (10:55 +0100)
Disable ZONE_DMA on 31-bit. All memory is addressable by all
devices and we do not need any special memory pool.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/Kconfig
arch/s390/mm/init.c

index eaaac3788110ec90ad076dc92d922da452675242..d9425f59be9156bee38dbb86aa68a1957bfbe8d8 100644 (file)
@@ -8,8 +8,8 @@ config MMU
        default y
 
 config ZONE_DMA
-       bool
-       default y
+       def_bool y
+       depends on 64BIT
 
 config LOCKDEP_SUPPORT
        bool
index b3e7c45efb63110f064ab77693e5349b71d081de..916b72a8cde8eea8dd21ac5e11d33af05b032f95 100644 (file)
@@ -141,7 +141,9 @@ void __init paging_init(void)
        __raw_local_irq_ssm(ssm_mask);
 
        memset(max_zone_pfns, 0, sizeof(max_zone_pfns));
+#ifdef CONFIG_ZONE_DMA
        max_zone_pfns[ZONE_DMA] = PFN_DOWN(MAX_DMA_ADDRESS);
+#endif
        max_zone_pfns[ZONE_NORMAL] = max_low_pfn;
        free_area_init_nodes(max_zone_pfns);
 }
This page took 0.027766 seconds and 5 git commands to generate.