Skip to content

Commit a2139d3

Browse files
Valentin Schneiderguoren83
authored andcommitted
csky: entry: 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 <[email protected]> Signed-off-by: Guo Ren <[email protected]>
1 parent 3a09d8e commit a2139d3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/csky/kernel/entry.S

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,7 @@ ENTRY(csky_irq)
302302
ldw r12, (r9, TINFO_FLAGS)
303303
btsti r12, TIF_NEED_RESCHED
304304
bf 2f
305-
1:
306305
jbsr preempt_schedule_irq /* irq en/disable is done inside */
307-
ldw r7, (r9, TINFO_FLAGS) /* get new tasks TI_FLAGS */
308-
btsti r7, TIF_NEED_RESCHED
309-
bt 1b /* go again */
310306
#endif
311307
2:
312308
jmpi ret_from_exception

0 commit comments

Comments
 (0)