archive mirror
 help / color / mirror / Atom feed
From: Tony Lindgren <>
To: Daniel Lezcano <>,
	Thomas Gleixner <>
Cc: Keerthy <>,,,,
	Lokesh Vutla <>
Subject: [PATCH] clocksource/drivers/timer-ti-dm: Drop unnecessary restore
Date: Tue, 18 May 2021 10:53:06 +0300	[thread overview]
Message-ID: <> (raw)

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,
+	case CPU_CLUSTER_PM_ENTER_FAILED:	/* No need to restore context */
+		break;
 		if ((timer->capability & OMAP_TIMER_ALWON) ||

             reply	other threads:[~2021-05-18  7:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-18  7:53 Tony Lindgren [this message]
2021-06-18 16:03 ` [tip: timers/core] " tip-bot2 for Tony Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] clocksource/drivers/timer-ti-dm: Drop unnecessary restore' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).