aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/idle_power4.S
diff options
context:
space:
mode:
authorStuart Yoder <stuart.yoder@freescale.com>2012-07-05 00:41:35 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-07-11 00:18:22 -0400
commit9778b696a0188ad3b3524b383953ee73b31b7b68 (patch)
treeae706a4c23f3e5da85c6bc6e33a534eb20d0d338 /arch/powerpc/kernel/idle_power4.S
parentdb9112173b185995b80f56e136bd2ae44e4e6366 (diff)
powerpc: Use CURRENT_THREAD_INFO instead of open coded assembly
Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
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 2c71b0fc9f91..e3edaa189911 100644
--- a/arch/powerpc/kernel/idle_power4.S
+++ b/arch/powerpc/kernel/idle_power4.S
@@ -59,7 +59,7 @@ BEGIN_FTR_SECTION
59 DSSALL 59 DSSALL
60 sync 60 sync
61END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC) 61END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)
62 clrrdi r9,r1,THREAD_SHIFT /* current thread_info */ 62 CURRENT_THREAD_INFO(r9, r1)
63 ld r8,TI_LOCAL_FLAGS(r9) /* set napping bit */ 63 ld r8,TI_LOCAL_FLAGS(r9) /* set napping bit */
64 ori r8,r8,_TLF_NAPPING /* so when we take an exception */ 64 ori r8,r8,_TLF_NAPPING /* so when we take an exception */
65 std r8,TI_LOCAL_FLAGS(r9) /* it will return to our caller */ 65 std r8,TI_LOCAL_FLAGS(r9) /* it will return to our caller */