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=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 402E3C433B4 for ; Tue, 18 May 2021 07:55:16 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 07EC3611B0 for ; Tue, 18 May 2021 07:55:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 07EC3611B0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=h53v1/Pb6/O9GgVxIcGfLGpaZMQhy5iSIjCHMgAQMkU=; b=hQUEJyhdL5ydlGW2Ud+zeY9GJl ovJsjK9CtFqpjrBEMRKtduKZYDfo0EHnJKbVGzqI+dW14d7l90isaBIKHYUINRLu4XUpjvBOvhprp Q8inkHDmbGFK+5ZefwsC/eoqCiZe5buUY0uWY5PcDKEGW0sbscCvLWV45u3vTrkFI7lzt7Ex2beFV 34Dk0Vv6p9bQfbB1AP+X2WL8lqP1ooK3fJ9DRjHb7GRass3/YJTF1fG5AIAl8gEwitf5VreoNCEua qfif97OM0cVshhD2TqaxDJ3YOChZ5GFbGYkNRm/dOcBWwrt5KrYVPOUiHOAMGFX4VAG53MJCD2SWF b0vUdP9Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liuXe-00HSfO-F4; Tue, 18 May 2021 07:53:26 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liuXQ-00HSdD-TB for linux-arm-kernel@desiato.infradead.org; Tue, 18 May 2021 07:53:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=jZO5plq6Vv3wnw/rGSTM95YwG43Jhr/dsroadrikHSU=; b=YpMwp63bTihFrqCnfhi98Otaz8 MxrlJnn3qfr0iTQ68dwtLTZs0iSlx9sZJEFCfjnLm4zJ/lm6LYFHwgfyZCalJg0MVCr8+zb8f8gI/ 2sgkh6mF1Ic3C9pAxV8ZRa/ZGN4Te6CCx1mkL/IJ+9lenjhqMoxdsZRpNDOmOWavwACmJ2GscOifX P1KM5kcWI/K9D2frxXUzHDOkNS5mdIahLdVQ9nJ2JEqaDf3RZ0atqo/dvNPK5j0lgX+hyJKE/uodL tIJSB3YFEdcz0O7F03rfEQF3owNIQOrxDtqnSz41KqCnMQI9wxXy/aeL+4lIvFPgMjTQaibzkAycp 20HkB1QQ==; Received: from muru.com ([72.249.23.125]) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liuXO-00EQq0-EH for linux-arm-kernel@lists.infradead.org; Tue, 18 May 2021 07:53:11 +0000 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 9D5A480F5; Tue, 18 May 2021 07:53:13 +0000 (UTC) From: Tony Lindgren To: Daniel Lezcano , Thomas Gleixner Cc: Keerthy , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lokesh Vutla Subject: [PATCH] clocksource/drivers/timer-ti-dm: Drop unnecessary restore Date: Tue, 18 May 2021 10:53:06 +0300 Message-Id: <20210518075306.35532-1-tony@atomide.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210518_005310_538257_7FDE8275 X-CRM114-Status: GOOD ( 10.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The device is not losing context on CPU_CLUSTER_PM_ERROR. As we are only saving and restoring context with cpu_pm, there is no need to restore the context in case of an error. Note that the unnecessary restoring of context does not cause issues, it's just not needed. Cc: Lokesh Vutla Signed-off-by: Tony Lindgren --- drivers/clocksource/timer-ti-dm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c --- a/drivers/clocksource/timer-ti-dm.c +++ b/drivers/clocksource/timer-ti-dm.c @@ -122,7 +122,8 @@ static int omap_timer_context_notifier(struct notifier_block *nb, break; omap_timer_save_context(timer); break; - case CPU_CLUSTER_PM_ENTER_FAILED: + case CPU_CLUSTER_PM_ENTER_FAILED: /* No need to restore context */ + break; case CPU_CLUSTER_PM_EXIT: if ((timer->capability & OMAP_TIMER_ALWON) || !atomic_read(&timer->enabled)) -- 2.31.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel