Skip to content

Commit cdaed73

Browse files
committed
Fix preemption bug.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent ebc7f12 commit cdaed73

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎arch/mips/kernel/entry.S‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ need_resched:
5858
LONG_L t0, PT_STATUS(sp) # Interrupts off?
5959
andi t0, 1
6060
beqz t0, restore_all
61-
li t0, PREEMPT_ACTIVE
62-
sw t0, TI_PRE_COUNT($28)
6361
jal preempt_schedule_irq
62+
b need_resched
6463
#endif
6564

6665
FEXPORT(ret_from_fork)

0 commit comments

Comments
 (0)