diff options
author | Valentin Schneider <valentin.schneider@arm.com> | 2019-09-23 16:36:14 +0200 |
---|---|---|
committer | Guo Ren <ren_guo@c-sky.com> | 2019-09-30 05:49:47 +0200 |
commit | a2139d3b4fd7ef26a363a1b1eb6cd55be2c1bcd1 (patch) | |
tree | 5fda9e52e3217670fa16135ee2d3da44c6f7d89c /arch | |
parent | csky: Fixup csky_pmu.max_period assignment (diff) | |
download | linux-a2139d3b4fd7ef26a363a1b1eb6cd55be2c1bcd1.tar.xz linux-a2139d3b4fd7ef26a363a1b1eb6cd55be2c1bcd1.zip |
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 <valentin.schneider@arm.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/csky/kernel/entry.S | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/csky/kernel/entry.S b/arch/csky/kernel/entry.S index 564dab2fabaa..a7a5b67df898 100644 --- a/arch/csky/kernel/entry.S +++ b/arch/csky/kernel/entry.S @@ -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 |