powerpc: No need to save XER in a system call
authorAnton Blanchard <anton@samba.org>
Wed, 4 Apr 2012 18:24:29 +0000 (18:24 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 30 Apr 2012 05:34:44 +0000 (15:34 +1000)
commit54c271ba9f33986fa078f3c799ca11cdfa15ae01
tree6528a931fade61d09a5a83951906cb6dcbaf33f9
parent43b774174e603d9f3ebed277c05c6c9409ded9eb
powerpc: No need to save XER in a system call

The XER is a volatile register so there is no need to save and restore
it over a system call - zero it out in the exception stack frame
instead.

This should fix a 5 cycle stall of the mfxer/std seen on POWER7.

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