Skip to content

Commit

Permalink
nds32: ex-exit: Remove unneeded need_resched() loop
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Valentin Schneider authored and Greentime Hu committed May 7, 2019
1 parent 8ac7857 commit aa0be0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/nds32/kernel/ex-exit.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -173,7 +173,7 @@ need_resched:
beqz $t0, no_work_pending

jal preempt_schedule_irq
b need_resched
b no_work_pending
#endif

/*
Expand Down

0 comments on commit aa0be0e

Please sign in to comment.