Skip to content

Commit 39014c4

Browse files
Valentin SchneiderMichal Simek
authored andcommitted
microblaze: 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 <[email protected]> Cc: Michal Simek <[email protected]> Signed-off-by: Michal Simek <[email protected]>
1 parent da0c9ea commit 39014c4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

arch/microblaze/kernel/entry.S

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -738,14 +738,9 @@ no_intr_resched:
738738
andi r5, r5, _TIF_NEED_RESCHED;
739739
beqi r5, restore /* if zero jump over */
740740

741-
preempt:
742741
/* interrupts are off that's why I am calling preempt_chedule_irq */
743742
bralid r15, preempt_schedule_irq
744743
nop
745-
lwi r11, CURRENT_TASK, TS_THREAD_INFO; /* get thread info */
746-
lwi r5, r11, TI_FLAGS; /* get flags in thread info */
747-
andi r5, r5, _TIF_NEED_RESCHED;
748-
bnei r5, preempt /* if non zero jump to resched */
749744
restore:
750745
#endif
751746
VM_OFF /* MS: turn off MMU */

0 commit comments

Comments
 (0)