[PATCH] powerpc: sysdev: cpm1: Optimise gpio bit calculation

Segher Boessenkool segher at kernel.crashing.org
Sat Mar 11 00:02:22 AEDT 2017


On Fri, Mar 10, 2017 at 07:41:33PM +1100, Michael Ellerman wrote:
> Well yeah, it saves one instruction, but is it worth it? Are these gpio
> routines in some hot path I don't know about?

If there was a GCC PR for this we probably would make GCC optimise
this; there are many similar things that are optimised already, just
not this one.


Segher


More information about the Linuxppc-dev mailing list