[PATCH] Use mtocrf in asm when CONFIG_POWER4_ONLY=y

Segher Boessenkool segher at kernel.crashing.org
Thu Mar 22 22:24:09 EST 2007


> mtocrf is a faster single-entry mtcrf available in PPC 2.00 and later
> processors. It can make quite a difference in performance on some
> implementations, so use it for CONFIG_POWER4_ONLY=y builds.

Does anyone know which CPUs that don't implement mtocrf
don't treat it identical to mtcrf?  That would allow to
widen when we use mtocrf.  Or perhaps it's really time
for an "asm alternatives" run-time patch thing now :-)

Patch looks good as-is but I can always ask for more...


Segher




More information about the Linuxppc-dev mailing list