From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Mon, 9 Nov 2009 10:18:22 +0000 Subject: [PATCH 4/4] RealView: Add sparsemem support for the RealView PBX platform In-Reply-To: <1257760300.21820.23.camel@pc1117.cambridge.arm.com> References: <20091015121927.739.32071.stgit@pc1117.cambridge.arm.com> <20091015122209.739.42849.stgit@pc1117.cambridge.arm.com> <20091108174503.GB28368@n2100.arm.linux.org.uk> <1257760300.21820.23.camel@pc1117.cambridge.arm.com> Message-ID: <20091109101822.GA15646@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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.