[RFC/PATCH 3/12] powerpc: Remove #ifdef ISERIES from readb/writeb etc. in io.h
Stephen Rothwell
sfr at canb.auug.org.au
Tue Jan 17 21:31:19 EST 2006
On Tue, 17 Jan 2006 11:14:56 +0100 Christoph Hellwig <hch at lst.de> wrote:
>
> On Tue, Jan 17, 2006 at 02:22:14PM +1100, Michael Ellerman wrote:
> > Convert readb/writeb etc. to be compilable on a combined kernel.
>
> this will bloat the kernel quite horribly I suspect. Either move them
> out of line or at least find a way to optimize away the dead code for
> normal builds.
That's excatly what this does. If you build with CONFIG_PPC_ISERIES not set,
then firmware_has_feature(FW_FEATURE_ISERIES) is constant 0. If you build
for iSeries only, then firmware_has_feature(FW_FEATURE_ISERIES) is constant 1.
--
Cheers,
Stephen Rothwell sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20060117/045539ea/attachment.pgp
More information about the Linuxppc64-dev
mailing list