powerpc: Remove redundant mflr in _switch
authorAnton Blanchard <anton@samba.org>
Thu, 29 Oct 2015 00:43:56 +0000 (11:43 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Dec 2015 02:52:24 +0000 (13:52 +1100)
No need to execute mflr twice.

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

index e84e5bc7fe345fd4e0d18aa56d353455d85e4057..c8b4225a0095ac36e033f1ff6e103e87b12fa2ee 100644 (file)
@@ -452,9 +452,7 @@ _GLOBAL(_switch)
        /* r3-r13 are caller saved -- Cort */
        SAVE_8GPRS(14, r1)
        SAVE_10GPRS(22, r1)
-       mflr    r20             /* Return to switch caller */
-
-       std     r20,_NIP(r1)
+       std     r0,_NIP(r1)     /* Return to switch caller */
        mfcr    r23
        std     r23,_CCR(r1)
        std     r1,KSP(r3)      /* Set old stack pointer */