From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69C37C43381 for ; Wed, 6 Mar 2019 04:32:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1A24B20663 for ; Wed, 6 Mar 2019 04:32:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fHAajZKo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1A24B20663 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jp.panasonic.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vMhfJG5VFb3WXHGAKfIr7+wUY1/8vaYX7yHAYVFxUXw=; b=fHAajZKojBRoT0 K9ThZ6fQ1Lo1jAC8kntT/QMqNB3BP1wwGqVBJ/3ZLRlaI+xh4ior4Yh0hcGaOaA5gDE5KE+gVLbi5 nrxVkGOIJuws9b6SoPseMc0UGJ6eWPn/5uBbgv0WQDhKpePzTSpVUSVxKxXC5L2K99xRqmBhN6EKv A6CrhFRH0kYUQSfWZ8Yx2Mbb+cIJhdJFA1nZ1x+VAp9WOSRdbDarbwUTXW4n/LeIG/fTrsi4OUqpv 3s4qBA7WA2yveNs/N6OqqbDXdD+5sMhSVA0s1q31/n1gjDPzvbNtaNYIuRrIWpCQGMmh+w4md2V0y m/kfO7cXHAKShPgh8SiA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1OE8-000396-Sq; Wed, 06 Mar 2019 04:32:20 +0000 Received: from smtp.mei.co.jp ([133.183.100.20]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1OE5-00038k-6G for linux-arm-kernel@lists.infradead.org; Wed, 06 Mar 2019 04:32:18 +0000 Received: from mail-gw.jp.panasonic.com ([157.8.1.157]) by smtp.mei.co.jp (8.14.4/8.14.4/lvzy11) with ESMTP id x264WCDj008898; Wed, 6 Mar 2019 13:32:12 +0900 Received: from epochmail.jp.panasonic.com ([157.8.1.130]) by mail.jp.panasonic.com (8.11.6p2/3.7W/kc-maili15) with ESMTP id x264WBs14703; Wed, 6 Mar 2019 13:32:11 +0900 Received: by epochmail.jp.panasonic.com (8.12.11.20060308/3.7W/pml-send3) id x264WBu2000512; Wed, 6 Mar 2019 13:32:11 +0900 Received: from jpa000secmn21.palet.jp.panasonic.com [10.74.216.56] by JPA000SGWMN05.palet.jp.panasonic.com with ESMTP id PAA36094; Wed, 6 Mar 2019 13:32:11 +0900 Received: from localhost.localdomain (10.74.216.183) by JPA000SECMN21.palet.jp.panasonic.com (10.74.216.56) with Microsoft SMTP Server (TLS) id 15.0.1076.9; Wed, 6 Mar 2019 13:32:10 +0900 From: Kohji Okuno To: Shawn Guo , Subject: [PATCH] ARM: imx6: cpuidle: omit the unnecessary unmask of GINT Date: Wed, 6 Mar 2019 13:30:42 +0900 Message-ID: <20190306043042.8926-1-okuno.kohji@jp.panasonic.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190306032107.GI26041@dragon> References: <20190306032107.GI26041@dragon> MIME-Version: 1.0 X-Originating-IP: [10.74.216.183] X-ClientProxiedBy: JPA000SECMN09.palet.jp.panasonic.com (10.74.216.18) To JPA000SECMN21.palet.jp.panasonic.com (10.74.216.56) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190305_203217_453490_DD771FAE X-CRM114-Status: UNSURE ( 9.50 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , Sascha Hauer , Kohji Okuno , NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org In imx6_set_lpm, we only need to unmask GINT when not WAIT_CLOCKED, so add a check condition. Signed-off-by: Peng Fan Signed-off-by: Kohji Okuno --- arch/arm/mach-imx/pm-imx6.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c index 87f45b926c78..54add0178b96 100644 --- a/arch/arm/mach-imx/pm-imx6.c +++ b/arch/arm/mach-imx/pm-imx6.c @@ -354,9 +354,11 @@ int imx6_set_lpm(enum mxc_cpu_pwr_mode mode) * * Note that IRQ #32 is GIC SPI #0. */ - imx_gpc_hwirq_unmask(0); + if (mode != WAIT_CLOCKED) + imx_gpc_hwirq_unmask(0); writel_relaxed(val, ccm_base + CLPCR); - imx_gpc_hwirq_mask(0); + if (mode != WAIT_CLOCKED) + imx_gpc_hwirq_mask(0); return 0; } -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel