Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1597951pxj; Wed, 19 May 2021 09:25:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxj7gmi4cNdIEBemw7SzTQa3rX3+3XQIqfB0KdzoDKpMyVia/BI2bKTl/cNQymcn37xtr4l X-Received: by 2002:a17:906:9257:: with SMTP id c23mr13673443ejx.392.1621441539103; Wed, 19 May 2021 09:25:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621441539; cv=none; d=google.com; s=arc-20160816; b=S8poXnCp486Kw7ucB0bSjLZ1/30SwBRsvn/jNRNQD9XT5aT9GNsHLmCK5jRMy3t23M CWqjQgazufa8CX/6yR1MWSoNRJlxuhMpuAeIltyvmxxq/voRTpGxbrt94XkZQmmeXchj 2cRmjnSHrZzQkX/DOdo2eLXqIuxTuE8aKpkJCC+QSeH2YoxKNF8MXp9/xwbhLbZQEH5F nZ8XjxsiTZ0xnotKba934Aqm6+cBLCGNdUz1wp5pVxR9ocZa/2ffgL8QMnxMgGJ1lNA1 TlPhACyqSi8k6CNuXcGARC5d96CG/Ymbx2B3OLey2lSnfK1xnKuG6j+V0uOQjmB85jta 66/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=jZO5plq6Vv3wnw/rGSTM95YwG43Jhr/dsroadrikHSU=; b=yS9ImRtMU17+inaO5MhCdBjItAoe8j2/GQtftPg9uMySlGC2yoNYwbPK/5jc6wimvY EsP4aPt0v557Ar68GK1qbW4TU+QohVtD5+LczKvWbwVOkYQUF09iijifk4jWjn1jl/mr i8MPtTgj2QSirxxlMiYibxWpnVaoU5VC85V4+uRWjw9S6mcCg8O8vmrjPbRPFISL8XTZ tOOnFHkYB4PfrcGfC8hNQaAE1ioGkuEjtxgrcWK4LKSZ51D2Pl+0suoU34gYSVm2HWGw Yt3iDz5Nq/DtqOCWL92qQJJValFGQy+0WIr9OLXN9csMQJiuEI6SGpaYuzql+IunEGBG s1jw== ARC-Authentication-Results: i=1; mx.google.com; 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 de2si13254666edb.152.2021.05.19.09.25.15; Wed, 19 May 2021 09:25: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; 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 S1347315AbhERHy2 (ORCPT + 99 others); Tue, 18 May 2021 03:54:28 -0400 Received: from muru.com ([72.249.23.125]:57076 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347311AbhERHy1 (ORCPT ); Tue, 18 May 2021 03:54:27 -0400 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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