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.schnei...@arm.com>
Cc: Yoshinori Sato <ys...@users.sourceforge.jp>
Cc: uclinux-h8-de...@lists.sourceforge.jp
---
 arch/h8300/kernel/entry.S | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/h8300/kernel/entry.S b/arch/h8300/kernel/entry.S
index 4ade5f8299ba..6bde028e7d4a 100644
--- a/arch/h8300/kernel/entry.S
+++ b/arch/h8300/kernel/entry.S
@@ -323,7 +323,6 @@ restore_all:
 resume_kernel:
        mov.l   @(TI_PRE_COUNT:16,er4),er0
        bne     restore_all:8
-need_resched:
        mov.l   @(TI_FLAGS:16,er4),er0
        btst    #TIF_NEED_RESCHED,r0l
        beq     restore_all:8
@@ -332,7 +331,7 @@ need_resched:
        mov.l   sp,er0
        jsr     @set_esp0
        jsr     @preempt_schedule_irq
-       bra     need_resched:8
+       bra     restore_all:8
 #endif
 
 ret_from_fork:
-- 
2.22.0

Reply via email to