]> git.baikalelectronics.ru Git - kernel.git/commitdiff
csky: entry: Remove unneeded need_resched() loop
authorValentin Schneider <valentin.schneider@arm.com>
Mon, 23 Sep 2019 14:36:14 +0000 (15:36 +0100)
committerGuo Ren <ren_guo@c-sky.com>
Mon, 30 Sep 2019 03:49:47 +0000 (11:49 +0800)
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>
Signed-off-by: Guo Ren <guoren@kernel.org>
arch/csky/kernel/entry.S

index 564dab2fabaa400bcbe759d5127178856349095a..a7a5b67df8989b96254f49110235176222b3fb7c 100644 (file)
@@ -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