powerpc: Remove SYNC on non 6xx
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 29 Sep 2020 06:48:31 +0000 (06:48 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 8 Oct 2020 10:17:12 +0000 (21:17 +1100)
SYNC is usefull for Powerpc 601 only. On everything else,
SYNC is empty.

Remove it from code that is not made to run on 6xx.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/27951fa6c9a8f80724d1bc81a6117ac32343a55d.1601362098.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/head_40x.S
arch/powerpc/kernel/head_booke.h
arch/powerpc/kernel/misc_64.S

index 5b282d9965a56822e7ea785fc1bb9017bd6d5dea..44c9018aed1b08bb380a0f980c1c5f3675c420f3 100644 (file)
@@ -72,7 +72,6 @@ turn_on_mmu:
        lis     r0,start_here@h
        ori     r0,r0,start_here@l
        mtspr   SPRN_SRR0,r0
-       SYNC
        rfi                             /* enables MMU */
        b       .                       /* prevent prefetch past rfi */
 
index 18f87bf9e32b065bb84ae0c9fdfee0ea2e6df2a1..71c359d438b52de65de17044c7f76667c81b42d8 100644 (file)
@@ -176,7 +176,6 @@ ALT_FTR_SECTION_END_IFSET(CPU_FTR_EMB_HV)
 #endif
        mtspr   SPRN_SRR1,r10
        mtspr   SPRN_SRR0,r11
-       SYNC
        RFI                             /* jump to handler, enable MMU */
 99:    b       ret_from_kernel_syscall
 .endm
index 7bb46ad9820725f69e2e3be9877c2ab776ad534e..070465825c2102b49005a455a99b663369fcaaa6 100644 (file)
@@ -365,7 +365,6 @@ _GLOBAL(kexec_smp_wait)
 
        li      r4,KEXEC_STATE_REAL_MODE
        stb     r4,PACAKEXECSTATE(r13)
-       SYNC
 
        b       kexec_wait