Re: [PATCH 2.6.10-mm2 Resend] Make use of preempt_schedule_irq[2/3] (PPC)

From: Thomas Gleixner
Date: Wed Jan 12 2005 - 06:58:44 EST


Make use of the new preempt_schedule_irq function.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

---
entry.S | 12 +-----------
1 files changed, 1 insertion(+), 11 deletions(-)
---

Index: 2.6.10-mm2/arch/ppc/kernel/entry.S
===================================================================
--- 2.6.10-mm2/arch/ppc/kernel/entry.S (revision 148)
+++ 2.6.10-mm2/arch/ppc/kernel/entry.S (working copy)
@@ -624,18 +624,8 @@
beq+ restore
andi. r0,r3,MSR_EE /* interrupts off? */
beq restore /* don't schedule if so */
-1: lis r0,PREEMPT_ACTIVE@h
- 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 */
+1: bl preempt_schedule_irq
rlwinm r9,r1,0,0,18
- li r0,0
- stw r0,TI_PREEMPT(r9)
lwz r3,TI_FLAGS(r9)
andi. r0,r3,_TIF_NEED_RESCHED
bne- 1b


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/