Skip to content

Commit

Permalink
csky: entry: 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 <[email protected]>
Signed-off-by: Guo Ren <[email protected]>
  • Loading branch information
Valentin Schneider authored and guoren83 committed Sep 30, 2019
1 parent 3a09d8e commit a2139d3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/csky/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,7 @@ ENTRY(csky_irq)
ldw r12, (r9, TINFO_FLAGS)
btsti r12, TIF_NEED_RESCHED
bf 2f
1:
jbsr preempt_schedule_irq /* irq en/disable is done inside */
ldw r7, (r9, TINFO_FLAGS) /* get new tasks TI_FLAGS */
btsti r7, TIF_NEED_RESCHED
bt 1b /* go again */
#endif
2:
jmpi ret_from_exception
Expand Down

0 comments on commit a2139d3

Please sign in to comment.