[PATCH] PPC/PPC64: Introduce CPU_HAS_FEATURE() macro

Arnd Bergmann arnd at arndb.de
Sat Feb 5 05:57:06 EST 2005


On Freedag 04 Februar 2005 19:35, Olof Johansson wrote:
> pSeries will need all cpus enabled since we have them all on various
> machines, etc. I guess Powermac/Maple could benefit from it.

Even on pSeries, we already have CONFIG_POWER4_ONLY, which could be
used to optimize away some of the checks at compile time.

I think it makes sense to extend this a bit to look more like the CPU
selection on i386 or s390 where can set the oldest CPU you want to
support. This also fits nicely with the gcc -mcpu= options.

> In the end it depends on how hairy the implementation would get vs 
> performance improvement.

Fortunately, that optimization should be easy to do on top of your
patch, so we don't have to decide now.

	Arnd <><
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20050204/bc4e5ab1/attachment.pgp>


More information about the Linuxppc-dev mailing list