diff options
author | Liu Yibin <jiulong@linux.alibaba.com> | 2020-05-13 15:54:15 +0800 |
---|---|---|
committer | Guo Ren <guoren@linux.alibaba.com> | 2020-05-13 17:55:06 +0800 |
commit | 6633a5aa8eb6bda70eb3a9837efd28a67ccc6e0a (patch) | |
tree | ac693f1aa87e1a0114294c441406a692d2440247 /arch/csky | |
parent | 18c07d23da5a48525b2955aa269b8bb108c19300 (diff) | |
download | linux-6633a5aa8eb6bda70eb3a9837efd28a67ccc6e0a.tar.gz linux-6633a5aa8eb6bda70eb3a9837efd28a67ccc6e0a.tar.bz2 linux-6633a5aa8eb6bda70eb3a9837efd28a67ccc6e0a.zip |
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 <jiulong@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Diffstat (limited to 'arch/csky')
-rw-r--r-- | arch/csky/kernel/entry.S | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/csky/kernel/entry.S b/arch/csky/kernel/entry.S index 364819536f2e..6a468ff75432 100644 --- a/arch/csky/kernel/entry.S +++ b/arch/csky/kernel/entry.S @@ -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 |