summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/idle_power4.S
diff options
context:
space:
mode:
authorChristophe Leroy2019-01-12 10:55:50 +0100
committerMichael Ellerman2019-02-23 12:31:40 +0100
commitc911d2e128e8ab7e789a5488dcb63ae9fe130aca (patch)
treeaaefcd2c47d20d12d908d868def9d79433686d2e /arch/powerpc/kernel/idle_power4.S
parentpowerpc/32: Remove CURRENT_THREAD_INFO and rename TI_CPU (diff)
downloadkernel-qcow2-linux-c911d2e128e8ab7e789a5488dcb63ae9fe130aca.tar.gz
kernel-qcow2-linux-c911d2e128e8ab7e789a5488dcb63ae9fe130aca.tar.xz
kernel-qcow2-linux-c911d2e128e8ab7e789a5488dcb63ae9fe130aca.zip
powerpc/64: Replace CURRENT_THREAD_INFO with PACA_THREAD_INFO
Now that current_thread_info is located at the beginning of 'current' task struct, CURRENT_THREAD_INFO macro is not really needed any more. This patch replaces it by loads of the value at PACA_THREAD_INFO(r13). Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> [mpe: Add PACA_THREAD_INFO rather than using PACACURRENT] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/idle_power4.S')
-rw-r--r--arch/powerpc/kernel/idle_power4.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/idle_power4.S b/arch/powerpc/kernel/idle_power4.S
index a09b3c7ca176..a2fdb0a34b75 100644
--- a/arch/powerpc/kernel/idle_power4.S
+++ b/arch/powerpc/kernel/idle_power4.S
@@ -68,7 +68,7 @@ BEGIN_FTR_SECTION
DSSALL
sync
END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)
- CURRENT_THREAD_INFO(r9, r1)
+ ld r9, PACA_THREAD_INFO(r13)
ld r8,TI_LOCAL_FLAGS(r9) /* set napping bit */
ori r8,r8,_TLF_NAPPING /* so when we take an exception */
std r8,TI_LOCAL_FLAGS(r9) /* it will return to our caller */