Skip to content

Commit

Permalink
Use preempt_schedule_irq.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 29, 2005
1 parent 5417673 commit a18815a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions arch/mips/kernel/entry.S
Original file line number Diff line number Diff line change
@@ -48,6 +48,7 @@ resume_userspace:

#ifdef CONFIG_PREEMPT
resume_kernel:
local_irq_disable
lw t0, TI_PRE_COUNT($28)
bnez t0, restore_all
need_resched:
@@ -59,11 +60,7 @@ need_resched:
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)

0 comments on commit a18815a

Please sign in to comment.