Skip to content

Commit 6633a5a

Browse files
Liu Yibinguoren83
authored andcommitted
csky: Fixup remove duplicate irq_disable
Interrupt has been disabled in __schedule() with local_irq_disable() and enabled in finish_task_switch->finish_lock_switch() with local_irq_enabled(), So needn't to disable irq here. Signed-off-by: Liu Yibin <[email protected]> Signed-off-by: Guo Ren <[email protected]>
1 parent 18c07d2 commit 6633a5a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/csky/kernel/entry.S

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,6 @@ ENTRY(__switch_to)
332332

333333
mfcr a2, psr /* Save PSR value */
334334
stw a2, (a3, THREAD_SR) /* Save PSR in task struct */
335-
bclri a2, 6 /* Disable interrupts */
336-
mtcr a2, psr
337335

338336
SAVE_SWITCH_STACK
339337

0 commit comments

Comments
 (0)