]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb785a49421a657d2d1175ac8967356e4d6f93a96
tree9b76934c91abcf4b3bc883e17ce698049575781d
parent27c21854641c4afc0fa09597456f100ba1c7905f
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