powerpc: Avoid load hit store in setup_sigcontext()
authorAnton Blanchard <anton@samba.org>
Sun, 29 May 2016 12:03:51 +0000 (22:03 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 14 Jun 2016 03:58:25 +0000 (13:58 +1000)
commitd96f234f47aff593538f9e3d674967078f56bc28
tree9b76934c91abcf4b3bc883e17ce698049575781d
parent8eb9803723a14fd12675641b953e4ccbd86187a8
powerpc: Avoid load hit store in setup_sigcontext()

In setup_sigcontext(), we set current->thread.vrsave then use it
straight after. Since current is hidden from the compiler via inline
assembly, it cannot optimise this and we end up with a load hit store.

Fix this by using a temporary.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/signal_64.c