powerpc/64e: Simplify address calculation in secondary hold loop
authorNicholas Piggin <npiggin@gmail.com>
Fri, 3 Feb 2023 11:38:58 +0000 (21:38 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Feb 2023 11:17:36 +0000 (22:17 +1100)
As the earlier comment explains, __secondary_hold_spinloop does not have
to be accessed at its virtual address, slightly simplifying code.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230203113858.1152093-4-npiggin@gmail.com
arch/powerpc/kernel/head_64.S

index 5af2e473b1950a4a81a1ff1434d6b50384710161..3a7266fa8a186cdc37f8809a7bd6797f0b7c6160 100644 (file)
@@ -160,12 +160,8 @@ __secondary_hold:
        std     r24,(ABS_ADDR(__secondary_hold_acknowledge, first_256B))(0)
        sync
 
-       li      r26,0
-#ifdef CONFIG_PPC_BOOK3E_64
-       tovirt(r26,r26)
-#endif
        /* All secondary cpus wait here until told to start. */
-100:   ld      r12,(ABS_ADDR(__secondary_hold_spinloop, first_256B))(r26)
+100:   ld      r12,(ABS_ADDR(__secondary_hold_spinloop, first_256B))(0)
        cmpdi   0,r12,0
        beq     100b