summaryrefslogtreecommitdiff
path: root/arch/score/kernel/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/score/kernel/process.c')
-rw-r--r--arch/score/kernel/process.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/score/kernel/process.c b/arch/score/kernel/process.c
index 25d08030a883..2707023c7563 100644
--- a/arch/score/kernel/process.c
+++ b/arch/score/kernel/process.c
@@ -53,9 +53,7 @@ void __noreturn cpu_idle(void)
while (!need_resched())
barrier();
- preempt_enable_no_resched();
- schedule();
- preempt_disable();
+ schedule_preempt_disabled();
}
}