Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2139d3b authored by Valentin Schneider's avatar Valentin Schneider Committed by Guo Ren
Browse files

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: default avatarValentin Schneider <valentin.schneider@arm.com>
Signed-off-by: default avatarGuo Ren <guoren@kernel.org>
parent 3a09d8e2
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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