diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-03-04 07:35:42 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:30:51 -0400 |
commit | cdaed73afb61913ee5115aa38b0c35ecb0513f50 (patch) | |
tree | 5470e1535229e926fc46b27a51f0ff851afa3ca3 /arch/mips/kernel/entry.S | |
parent | ebc7f12fbc6a2d2df1930b91b380c9defb48cbf3 (diff) |
Fix preemption bug.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/entry.S')
-rw-r--r-- | arch/mips/kernel/entry.S | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/mips/kernel/entry.S b/arch/mips/kernel/entry.S index ebc1a5d4f8b8..6e01b0dd031f 100644 --- a/arch/mips/kernel/entry.S +++ b/arch/mips/kernel/entry.S | |||
@@ -58,9 +58,8 @@ need_resched: | |||
58 | LONG_L t0, PT_STATUS(sp) # Interrupts off? | 58 | LONG_L t0, PT_STATUS(sp) # Interrupts off? |
59 | andi t0, 1 | 59 | andi t0, 1 |
60 | beqz t0, restore_all | 60 | beqz t0, restore_all |
61 | li t0, PREEMPT_ACTIVE | ||
62 | sw t0, TI_PRE_COUNT($28) | ||
63 | jal preempt_schedule_irq | 61 | jal preempt_schedule_irq |
62 | b need_resched | ||
64 | #endif | 63 | #endif |
65 | 64 | ||
66 | FEXPORT(ret_from_fork) | 65 | FEXPORT(ret_from_fork) |