]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/tm: Turn interrupts hard off in tm_reclaim()
authorMichael Neuling <mikey@neuling.org>
Wed, 2 Oct 2013 07:15:15 +0000 (17:15 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 3 Oct 2013 07:25:44 +0000 (17:25 +1000)
We can't take IRQs in tm_reclaim as we might have a bogus r13 and r1.

This turns IRQs hard off in this function.

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

index 7b60b98514691ee554d1140e408c9802f83d21a4..8ece1908be1af675677b64937f8a53338ae57ae8 100644 (file)
@@ -123,6 +123,7 @@ _GLOBAL(tm_reclaim)
        mr      r15, r14
        ori     r15, r15, MSR_FP
        li      r16, MSR_RI
+       ori     r16, r16, MSR_EE /* IRQs hard off */
        andc    r15, r15, r16
        oris    r15, r15, MSR_VEC@h
 #ifdef CONFIG_VSX