Skip to content

Commit a18815a

Browse files
committed
Use preempt_schedule_irq.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 5417673 commit a18815a

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎arch/mips/kernel/entry.S‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ resume_userspace:
4848

4949
#ifdef CONFIG_PREEMPT
5050
resume_kernel:
51+
local_irq_disable
5152
lw t0, TI_PRE_COUNT($28)
5253
bnez t0, restore_all
5354
need_resched:
@@ -59,11 +60,7 @@ need_resched:
5960
beqz t0, restore_all
6061
li t0, PREEMPT_ACTIVE
6162
sw t0, TI_PRE_COUNT($28)
62-
local_irq_enable
63-
jal schedule
64-
sw zero, TI_PRE_COUNT($28)
65-
local_irq_disable
66-
b need_resched
63+
jal preempt_schedule_irq
6764
#endif
6865

6966
FEXPORT(ret_from_fork)

0 commit comments

Comments
 (0)