Skip to content

Commit

Permalink
csky: Fixup remove duplicate irq_disable
Browse files Browse the repository at this point in the history
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 <jiulong@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
  • Loading branch information
Liu Yibin authored and guoren83 committed May 13, 2020
1 parent 18c07d2 commit 6633a5a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/csky/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,6 @@ ENTRY(__switch_to)

mfcr a2, psr /* Save PSR value */
stw a2, (a3, THREAD_SR) /* Save PSR in task struct */
bclri a2, 6 /* Disable interrupts */
mtcr a2, psr

SAVE_SWITCH_STACK

Expand Down

0 comments on commit 6633a5a

Please sign in to comment.