aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/idle_64e.S
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2022-09-20 22:22:58 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2022-09-28 19:22:10 +1000
commitdabeb572adf24bbd7cb21d1cc4d118bdf2c2ab74 (patch)
tree8c1f893639c1a2accaeaa955f187d04b43acef6d /arch/powerpc/kernel/idle_64e.S
parentpowerpc/time: avoid programming DEC at the start of the timer interrupt (diff)
downloadlinux-dev-dabeb572adf24bbd7cb21d1cc4d118bdf2c2ab74.tar.xz
linux-dev-dabeb572adf24bbd7cb21d1cc4d118bdf2c2ab74.zip
powerpc: add ISA v3.0 / v3.1 wait opcode macro
The wait instruction encoding changed between ISA v2.07 and ISA v3.0. In v3.1 the instruction gained a new field. Update the PPC_WAIT macro to the current encoding. Rename the older incompatible one with a _v203 suffix as it was introduced in v2.03 (the WC field was introduced in v2.07 but the kernel only uses WC=0). Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220920122259.363092-1-npiggin@gmail.com
Diffstat (limited to '')
-rw-r--r--arch/powerpc/kernel/idle_64e.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/idle_64e.S b/arch/powerpc/kernel/idle_64e.S
index 1736aad2afe9..0fc680e03dee 100644
--- a/arch/powerpc/kernel/idle_64e.S
+++ b/arch/powerpc/kernel/idle_64e.S
@@ -75,7 +75,7 @@ _GLOBAL(\name)
.macro BOOK3E_IDLE_LOOP
1:
- PPC_WAIT(0)
+ PPC_WAIT_v203
b 1b
.endm