]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/tm: Clear MSR RI in non-recoverable TM code
authorMichael Neuling <mikey@neuling.org>
Fri, 28 Jun 2013 08:17:09 +0000 (18:17 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 30 Jun 2013 05:49:43 +0000 (15:49 +1000)
commit88aac5a30a90083c92a7a738f6f42c45e8bd23ae
treeabaa4ab0c0f59bd15c1748192a863095af2f3296
parent82511837bd60e003282f76fd504cfdd079e3c0c4
powerpc/tm: Clear MSR RI in non-recoverable TM code

When we treclaim and trecheckpoint there's an unavoidable period when r1
will not be a valid kernel stack pointer.

This patch clears the MSR recoverable interrupt (RI) bit over these
regions to indicate we have an invalid kernel stack pointer.

For treclaim, the region over which we clear MSR RI is larger than
required to avoid the need for an extra costly mtmsrd.

Thanks to Paulus for suggesting this change.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/tm.S