summaryrefslogtreecommitdiffstats
path: root/arch/nds32
diff options
context:
space:
mode:
authorValentin Schneider2019-03-11 23:47:45 +0100
committerGreentime Hu2019-05-07 11:52:09 +0200
commitaa0be0e022ff1ec333c6fe626879e03a037c7230 (patch)
tree06dc31d7fec965e379c1fe28d34186334ac3688c /arch/nds32
parentnds32/io: Remove useless definition of mmiowb() (diff)
downloadkernel-qcow2-linux-aa0be0e022ff1ec333c6fe626879e03a037c7230.tar.gz
kernel-qcow2-linux-aa0be0e022ff1ec333c6fe626879e03a037c7230.tar.xz
kernel-qcow2-linux-aa0be0e022ff1ec333c6fe626879e03a037c7230.zip
nds32: ex-exit: Remove unneeded need_resched() loop
Since the enabling and disabling of IRQs within preempt_schedule_irq() is contained in a need_resched() loop, we don't need the outer arch code loop. Signed-off-by: Valentin Schneider <valentin.schneider@arm.com> Cc: Greentime Hu <green.hu@gmail.com> Cc: Vincent Chen <deanbo422@gmail.com> Acked-by: Greentime Hu <greentime@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com>
Diffstat (limited to 'arch/nds32')
-rw-r--r--arch/nds32/kernel/ex-exit.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/nds32/kernel/ex-exit.S b/arch/nds32/kernel/ex-exit.S
index 97ba15cd4180..1df02a793364 100644
--- a/arch/nds32/kernel/ex-exit.S
+++ b/arch/nds32/kernel/ex-exit.S
@@ -163,7 +163,7 @@ resume_kernel:
gie_disable
lwi $t0, [tsk+#TSK_TI_PREEMPT]
bnez $t0, no_work_pending
-need_resched:
+
lwi $t0, [tsk+#TSK_TI_FLAGS]
andi $p1, $t0, #_TIF_NEED_RESCHED
beqz $p1, no_work_pending
@@ -173,7 +173,7 @@ need_resched:
beqz $t0, no_work_pending
jal preempt_schedule_irq
- b need_resched
+ b no_work_pending
#endif
/*