Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp693459ybg; Mon, 1 Jun 2020 11:51:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmMG7dICLe9tZ/4EobldHetr7T2Fp3py8WhlegXOT+FmLVShTVCFk6v1TAzwXUsDAAQaPU X-Received: by 2002:a17:906:3e15:: with SMTP id k21mr3409604eji.525.1591037499626; Mon, 01 Jun 2020 11:51:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591037499; cv=none; d=google.com; s=arc-20160816; b=ptyEPsen3hiDgaaY3ixmf/HDVFtLxVGTR7UpZ3zRZvqkQlUC4FDjyxRSMLGZIkFLUw a/Jhh06sg+9VN9Ie2gK2d7+fls8dep0PxdoyThj3e6R3rpI6dtGzWQMiKAek9n/lNq3G zCwmxVo/xaqE6qyMZl5mfYSeXiEFfUGWU5NJxplgs7DbTxK6E/l2S26VcR2eDhnuZ8g7 MOQzDuUKdDDCs5d3JB3zUQWcxzdKRtEY2Ro8k/wnK0x2gCKPdwA1IKp5uHBL8GMPnsLi TcmwLMRRmvbvifrv8uaAz8U2BVQUKH/SlgU2NuKpq2Rx0Mq030xPKX92eubh5EbS1QYa UwUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+ol7Jscu96B3x4qVcU4yhduityg+DAUDn5TjU0wIoDQ=; b=ThDg0r6ErB38xJOzQxZ3zSdc8L03aRdRq2pgDsE2ciBwvPnaEaly6EKSK8TVfodST6 fNoaT4Jl24V8JIYWtp6UNezy+ERvULcomCUORiVPwBpLMur5/KNbuRlD/ZIoOJDk53MD VE9l/4v1RPQdtpBU78ojhhszsoL7w4f4G8lJFQoRv9MorGuXE0BHxoBrlK296jt6yjYI aswJsErtVdwB/8ON4ZKtYwgrhFsu25+k/dbWv6Qtl6fQLPF3Qr1bF/PgLp/IbTl64BCA tnDjtX2vNtpBHx8kwn6XSfz2g1qQXyTL77iq1ov8RXfEMYIHFKm1CXwjPy8uREg/C9VO sOjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=masTlWTp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cb12si191793ejb.705.2020.06.01.11.51.16; Mon, 01 Jun 2020 11:51:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=masTlWTp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730467AbgFASr3 (ORCPT + 99 others); Mon, 1 Jun 2020 14:47:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:54284 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730693AbgFASIM (ORCPT ); Mon, 1 Jun 2020 14:08:12 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E47EB2077D; Mon, 1 Jun 2020 18:08:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591034892; bh=gMXF4fl4Dkfvmlk//jveDXjQXmPi/EG1P1zpQCrRKb4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=masTlWTpVAAIP7fNw0JIOry7/Dq2Uf5hEXDgWtr/nbyC8ZjAhnKpkCQSQeqe0K+Sm chaKKbAnHjTqASfWHZ7tXqeEsA/w+v23FyH88pRdv80CAUcaB3bFYzVBwLYhyHvfjk zqKf8sRkFiJHISzvGLwG8JplG7xvGfQkL8ZWiTQE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Liu Yibin , Guo Ren , Sasha Levin Subject: [PATCH 5.4 057/142] csky: Fixup remove duplicate irq_disable Date: Mon, 1 Jun 2020 19:53:35 +0200 Message-Id: <20200601174043.854249061@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200601174037.904070960@linuxfoundation.org> References: <20200601174037.904070960@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Liu Yibin [ 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 --- 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 a7a5b67df898..65c55f22532a 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 -- 2.25.1