[PATCH 4/4] RealView: Add sparsemem support for the RealView PBX platform

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Nov 9 05:18:22 EST 2009


On Mon, Nov 09, 2009 at 09:51:40AM +0000, Catalin Marinas wrote:
> On Sun, 2009-11-08 at 17:45 +0000, Russell King - ARM Linux wrote:
> > On Thu, Oct 15, 2009 at 01:22:09PM +0100, Catalin Marinas wrote:
> > > +config ARCH_FLATMEM_ENABLE
> > > +	bool
> > > +	default y if ARCH_SPARSEMEM_ENABLE
> > > +
> > 
> > I seem to have missed this.  Why do we want to enable flatmem support for
> > _everything_ which enables sparsemem?
> 
> Just to have the option of selecting either flatmem or sparsemem with
> PBX (though I don't have a strong opinion about this). This can also be
> done transparently via REALVIEW_HIGH_PHYS_OFFSET.

If you want to do this, put ARCH_FLATMEM_ENABLE into arch/arm/Kconfig,
and arrange for the platform(s) where this is optional _and_ not the
default to select this symbol, in precisely the same way that
ARCH_SPARSEMEM_ENABLE is handled today.



More information about the linux-arm-kernel mailing list