[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200513101617.11588-3-guoren@kernel.org>
Date: Wed, 13 May 2020 18:16:16 +0800
From: guoren@...nel.org
To: linux-csky@...r.kernel.org
Cc: arnd@...db.de, linux-kernel@...r.kernel.org,
linux-arch@...r.kernel.org, guoren@...nel.org,
Liu Yibin <jiulong@...ux.alibaba.com>,
Guo Ren <guoren@...ux.alibaba.com>
Subject: [PATCH 3/4] csky: Fixup remove duplicate irq_disable
From: Liu Yibin <jiulong@...ux.alibaba.com>
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@...ux.alibaba.com>
Signed-off-by: Guo Ren <guoren@...ux.alibaba.com>
---
arch/csky/kernel/entry.S | 2 --
1 file changed, 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
--
2.17.0
Powered by blists - more mailing lists