aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/entry.S
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-02-06 21:54:29 -0500
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 14:30:27 -0400
commita18815abcdfd9f10a6ce6fbec3ad1af1ae101ce7 (patch)
tree9be4382c2fefbcde7f47335c77d80a24a65f29e0 /arch/mips/kernel/entry.S
parent54176736f734ca3a1f27416d8e5804981a627076 (diff)
Use preempt_schedule_irq.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/entry.S')
-rw-r--r--arch/mips/kernel/entry.S7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/mips/kernel/entry.S b/arch/mips/kernel/entry.S
index be0354a14e26..ebc1a5d4f8b8 100644
--- a/arch/mips/kernel/entry.S
+++ b/arch/mips/kernel/entry.S
@@ -48,6 +48,7 @@ resume_userspace:
48 48
49#ifdef CONFIG_PREEMPT 49#ifdef CONFIG_PREEMPT
50resume_kernel: 50resume_kernel:
51 local_irq_disable
51 lw t0, TI_PRE_COUNT($28) 52 lw t0, TI_PRE_COUNT($28)
52 bnez t0, restore_all 53 bnez t0, restore_all
53need_resched: 54need_resched:
@@ -59,11 +60,7 @@ need_resched:
59 beqz t0, restore_all 60 beqz t0, restore_all
60 li t0, PREEMPT_ACTIVE 61 li t0, PREEMPT_ACTIVE
61 sw t0, TI_PRE_COUNT($28) 62 sw t0, TI_PRE_COUNT($28)
62 local_irq_enable 63 jal preempt_schedule_irq
63 jal schedule
64 sw zero, TI_PRE_COUNT($28)
65 local_irq_disable
66 b need_resched
67#endif 64#endif
68 65
69FEXPORT(ret_from_fork) 66FEXPORT(ret_from_fork)