]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc: Improve 64-bit syscall entry/exit
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 1 Mar 2012 04:40:23 +0000 (15:40 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 8 Mar 2012 23:55:04 +0000 (10:55 +1100)
commit1421ae0b29e0003395613bf67610d15fb7047e09
tree5a187df5b64d7f247e72fa26f69eb94cfbd7b8d3
parentfe1952fc0afb9a2e4c79f103c08aef5d13db1873
powerpc: Improve 64-bit syscall entry/exit

We unconditionally hard enable interrupts. This is unnecessary as
syscalls are expected to always be called with interrupts enabled.

While at it, we add a WARN_ON if that is not the case and
CONFIG_TRACE_IRQFLAGS is enabled (we don't want to add overhead
to the fast path when this is not set though).

Thus let's remove the enabling (and associated irq tracing) from
the syscall entry path. Also on Book3S, replace a few mfmsr
instructions with loads of PACAMSR from the PACA, which should be
faster & schedule better.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/entry_64.S