From: Liu Yibin Date: Wed, 13 May 2020 07:54:15 +0000 (+0800) Subject: csky: Fixup remove duplicate irq_disable X-Git-Tag: v5.6.16~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d528d31297bdaac9daba3ca64cabac55c094b09;p=thirdparty%2Fkernel%2Fstable.git csky: Fixup remove duplicate irq_disable [ Upstream commit 6633a5aa8eb6bda70eb3a9837efd28a67ccc6e0a ] 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 Signed-off-by: Guo Ren Signed-off-by: Sasha Levin --- diff --git a/arch/csky/kernel/entry.S b/arch/csky/kernel/entry.S index 0077063280000..9718388448a4b 100644 --- a/arch/csky/kernel/entry.S +++ b/arch/csky/kernel/entry.S @@ -318,8 +318,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