diff options
author | Stuart Yoder <stuart.yoder@freescale.com> | 2012-07-05 00:41:35 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-07-11 00:18:22 -0400 |
commit | 9778b696a0188ad3b3524b383953ee73b31b7b68 (patch) | |
tree | ae706a4c23f3e5da85c6bc6e33a534eb20d0d338 /arch/powerpc/kvm/bookehv_interrupts.S | |
parent | db9112173b185995b80f56e136bd2ae44e4e6366 (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/kvm/bookehv_interrupts.S')
-rw-r--r-- | arch/powerpc/kvm/bookehv_interrupts.S | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/powerpc/kvm/bookehv_interrupts.S b/arch/powerpc/kvm/bookehv_interrupts.S index 18cee4b0098a..1685dc43bcf2 100644 --- a/arch/powerpc/kvm/bookehv_interrupts.S +++ b/arch/powerpc/kvm/bookehv_interrupts.S | |||
@@ -160,11 +160,7 @@ | |||
160 | mtspr SPRN_EPLC, r8 | 160 | mtspr SPRN_EPLC, r8 |
161 | 161 | ||
162 | /* disable preemption, so we are sure we hit the fixup handler */ | 162 | /* disable preemption, so we are sure we hit the fixup handler */ |
163 | #ifdef CONFIG_PPC64 | 163 | CURRENT_THREAD_INFO(r8, r1) |
164 | clrrdi r8,r1,THREAD_SHIFT | ||
165 | #else | ||
166 | rlwinm r8,r1,0,0,31-THREAD_SHIFT /* current thread_info */ | ||
167 | #endif | ||
168 | li r7, 1 | 164 | li r7, 1 |
169 | stw r7, TI_PREEMPT(r8) | 165 | stw r7, TI_PREEMPT(r8) |
170 | 166 | ||