提交 a18815ab 编写于 作者: R Ralf Baechle

Use preempt_schedule_irq.

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 54176736
...@@ -48,6 +48,7 @@ resume_userspace: ...@@ -48,6 +48,7 @@ resume_userspace:
#ifdef CONFIG_PREEMPT #ifdef CONFIG_PREEMPT
resume_kernel: resume_kernel:
local_irq_disable
lw t0, TI_PRE_COUNT($28) lw t0, TI_PRE_COUNT($28)
bnez t0, restore_all bnez t0, restore_all
need_resched: need_resched:
...@@ -59,11 +60,7 @@ need_resched: ...@@ -59,11 +60,7 @@ need_resched:
beqz t0, restore_all beqz t0, restore_all
li t0, PREEMPT_ACTIVE li t0, PREEMPT_ACTIVE
sw t0, TI_PRE_COUNT($28) sw t0, TI_PRE_COUNT($28)
local_irq_enable jal preempt_schedule_irq
jal schedule
sw zero, TI_PRE_COUNT($28)
local_irq_disable
b need_resched
#endif #endif
FEXPORT(ret_from_fork) FEXPORT(ret_from_fork)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册