Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
#ifdef CONFIG_PREEMPT
resume_kernel:
#ifdef CONFIG_PREEMPT
resume_kernel:
lw t0, TI_PRE_COUNT($28)
bnez t0, restore_all
need_resched:
lw t0, TI_PRE_COUNT($28)
bnez t0, restore_all
need_resched:
beqz t0, restore_all
li t0, PREEMPT_ACTIVE
sw t0, TI_PRE_COUNT($28)
beqz t0, restore_all
li t0, PREEMPT_ACTIVE
sw t0, TI_PRE_COUNT($28)
- local_irq_enable
- jal schedule
- sw zero, TI_PRE_COUNT($28)
- local_irq_disable
- b need_resched
+ jal preempt_schedule_irq
#endif
FEXPORT(ret_from_fork)
#endif
FEXPORT(ret_from_fork)