[PATCH] Use PLATFORM_LPAR rather than PLATFORM_PSERIES_LPAR

David Gibson dwg at au1.ibm.com
Sat Sep 10 10:20:35 EST 2005


On Fri, Sep 09, 2005 at 06:16:59PM -0400, Jimi Xenidis wrote:
> 
> Since processor.h defines a PLATFORM_LPAR bit, it would be better to
> use the bit rather than the pSeries value to detect generic LPAR.
> This patch allows for a both furure PLATFORM_[MAPLE|CELL]_LPAR
> platforms to share PSERIES_LPAR code.

I think we would be better off using new firmware_has_feature() bits
for this.  It takes us a step closer to a kernel which can boot both
pSeries and iSeries and a step closer to getting rid of the magic
platform numbers entirely.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/people/dgibson



More information about the Linuxppc64-dev mailing list