Re: [RFC 1/8] Add CONFIG_ZONE_DMA to all archesM

KAMEZAWA Hiroyuki
2006-07-10T00:51:22Z

On Fri, 7 Jul 2006 17:05:06 -0700 (PDT)
Christoph Lameter <clameter@sgi.com> wrote:
> As a result of this patch CONFIG_ZONE_DMA should be defined for every
> arch.
>
> Signed-off-by: Christoph Lameter <clameter@sgi.com>
>
> Index: linux-2.6.17-mm6/mm/Kconfig
> ===================================================================
> --- linux-2.6.17-mm6.orig/mm/Kconfig 2006-07-03 13:47:22.616084772 -0700
> +++ linux-2.6.17-mm6/mm/Kconfig 2006-07-03 21:26:49.956038556 -0700
> @@ -134,6 +134,10 @@ config SPLIT_PTLOCK_CPUS
> default "4096" if PARISC && !PA20
> default "4"
>
> +config ZONE_DMA
> + def_bool y
> + depends on GENERIC_ISA_DMA
> +

How about configuring this by

config ZONE_DMA
def_bool y
depends on GENERIC_ISA_DMA || ARCH_ZONE_DMA

and set ARCH_ZONE_DMA for each arch ?

-Kame