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

KAMEZAWA Hiroyuki
2006-07-11T07:10:29Z

On Mon, 10 Jul 2006 08:56:50 -0700 (PDT)
Christoph Lameter <clameter@sgi.com> wrote:

> On Mon, 10 Jul 2006, KAMEZAWA Hiroyuki wrote:
>
> >
> > 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 ?
>
> Yes we do something like that in a later patch. What would be the
> advantage of having CONFIG_ARCH_ZONE_DMA instead of CONFIG_ZONE_DMA?
>
I think it's a bit complicated that both (generic)mm/Kconfig and arch/???/Kconfg
has the same config option. I think there are 2 ways..

1. remove CONFIG_ZONE_DMA from mm/Kconfig and move all to under arch/
2. define ARCH_ZONE_DMA under /arch and unite them in mm/Kconfig by
CONFIG_ZONE_DMA

-Kame