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>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
db9112173b
commit
9778b696a0
@@ -160,11 +160,7 @@
|
||||
mtspr SPRN_EPLC, r8
|
||||
|
||||
/* disable preemption, so we are sure we hit the fixup handler */
|
||||
#ifdef CONFIG_PPC64
|
||||
clrrdi r8,r1,THREAD_SHIFT
|
||||
#else
|
||||
rlwinm r8,r1,0,0,31-THREAD_SHIFT /* current thread_info */
|
||||
#endif
|
||||
CURRENT_THREAD_INFO(r8, r1)
|
||||
li r7, 1
|
||||
stw r7, TI_PREEMPT(r8)
|
||||
|
||||
|
Reference in New Issue
Block a user