Messages in this thread Patch in this message | | | From | Valentin Schneider <> | Subject | [PATCH RESEND 2/7] csky: entry: Remove unneeded need_resched() loop | Date | Tue, 28 May 2019 11:48:43 +0100 |
| |
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: Guo Ren <guoren@kernel.org> --- arch/csky/kernel/entry.S | 4 ---- 1 file changed, 4 deletions(-)
diff --git a/arch/csky/kernel/entry.S b/arch/csky/kernel/entry.S index a7e84ccccbd8..679afbcc2001 100644 --- a/arch/csky/kernel/entry.S +++ b/arch/csky/kernel/entry.S @@ -292,11 +292,7 @@ ENTRY(csky_irq) ldw r8, (r9, TINFO_FLAGS) btsti r8, 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 -- 2.20.1
| |