OSDN Git Service

Fix preemption bug.
authorRalf Baechle <ralf@linux-mips.org>
Fri, 4 Mar 2005 12:35:42 +0000 (12:35 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 29 Oct 2005 18:30:51 +0000 (19:30 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/entry.S

index ebc1a5d..6e01b0d 100644 (file)
@@ -58,9 +58,8 @@ need_resched:
        LONG_L  t0, PT_STATUS(sp)               # Interrupts off?
        andi    t0, 1
        beqz    t0, restore_all
-       li      t0, PREEMPT_ACTIVE
-       sw      t0, TI_PRE_COUNT($28)
        jal     preempt_schedule_irq
+       b       need_resched
 #endif
 
 FEXPORT(ret_from_fork)