powerpc: Save the TAR register earlier
authorMichael Neuling <mikey@neuling.org>
Fri, 9 Aug 2013 07:29:30 +0000 (17:29 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 9 Aug 2013 08:07:08 +0000 (18:07 +1000)
commitc2d52644e2da8a07ecab5ca62dd0bc563089e8dc
treea21b5652b82e1e0dee7e996c1c77c9d7ac5e9033
parent2517617e0de65f8f7cfe75cae745d06b1fa98586
powerpc: Save the TAR register earlier

This moves us to save the Target Address Register (TAR) a earlier in
__switch_to.  It introduces a new function save_tar() to do this.

We need to save the TAR earlier as we will overwrite it in the transactional
memory reclaim/recheckpoint path.  We are going to do this in a subsequent
patch which will fix saving the TAR register when it's modified inside a
transaction.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Cc: <stable@vger.kernel.org> [v3.10]
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/switch_to.h
arch/powerpc/kernel/entry_64.S
arch/powerpc/kernel/process.c