diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2015-11-25 14:25:17 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-12-17 22:40:57 +1100 |
commit | d030a4b5eb7e9514c15b84a765bcc395cc26ab40 (patch) | |
tree | cf23c9a84426b5e1c53a2d44674105a58ada4e79 /arch/powerpc/kernel/entry_64.S | |
parent | d6265aeaf815801ad53a95f11cea8ea752862176 (diff) | |
download | blackbird-obmc-linux-d030a4b5eb7e9514c15b84a765bcc395cc26ab40.tar.gz blackbird-obmc-linux-d030a4b5eb7e9514c15b84a765bcc395cc26ab40.zip |
powerpc/kernel: Open code HMT_MEDIUM_LOW_HAS_PPR
HMT_MEDIUM_LOW_HAS_PPR is only used in once place, open code it.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/entry_64.S')
-rw-r--r-- | arch/powerpc/kernel/entry_64.S | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S index c8b4225a0095..651a65552ac8 100644 --- a/arch/powerpc/kernel/entry_64.S +++ b/arch/powerpc/kernel/entry_64.S @@ -223,7 +223,11 @@ END_FTR_SECTION_IFCLR(CPU_FTR_STCX_CHECKS_ADDRESS) beq- 1f ACCOUNT_CPU_USER_EXIT(r11, r12) - HMT_MEDIUM_LOW_HAS_PPR + +BEGIN_FTR_SECTION + HMT_MEDIUM_LOW +END_FTR_SECTION_IFSET(CPU_FTR_HAS_PPR) + ld r13,GPR13(r1) /* only restore r13 if returning to usermode */ 1: ld r2,GPR2(r1) ld r1,GPR1(r1) |