Commit 3a1bc7cf authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Linus Torvalds

[PATCH] sched: make use of preempt_schedule_irq() (PPC)

Make use of the new preempt_schedule_irq function.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b268264c
...@@ -624,18 +624,8 @@ resume_kernel: ...@@ -624,18 +624,8 @@ resume_kernel:
beq+ restore beq+ restore
andi. r0,r3,MSR_EE /* interrupts off? */ andi. r0,r3,MSR_EE /* interrupts off? */
beq restore /* don't schedule if so */ beq restore /* don't schedule if so */
1: lis r0,PREEMPT_ACTIVE@h 1: bl preempt_schedule_irq
stw r0,TI_PREEMPT(r9)
ori r10,r10,MSR_EE
SYNC
MTMSRD(r10) /* hard-enable interrupts */
bl schedule
LOAD_MSR_KERNEL(r10,MSR_KERNEL)
SYNC
MTMSRD(r10) /* disable interrupts */
rlwinm r9,r1,0,0,18 rlwinm r9,r1,0,0,18
li r0,0
stw r0,TI_PREEMPT(r9)
lwz r3,TI_FLAGS(r9) lwz r3,TI_FLAGS(r9)
andi. r0,r3,_TIF_NEED_RESCHED andi. r0,r3,_TIF_NEED_RESCHED
bne- 1b bne- 1b
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment