Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1644105pxj; Fri, 18 Jun 2021 11:32:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpHH0oeLD/e0ankOnHqQMG4cVz6ssTzkXOSkWqygwbvAEE1yb5nWV4EFw1ztj8VsLvZbxS X-Received: by 2002:a5d:9acd:: with SMTP id x13mr9042465ion.134.1624041174786; Fri, 18 Jun 2021 11:32:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624041174; cv=none; d=google.com; s=arc-20160816; b=Wy0OQ9BqSgTWSJ7qs5wXU6+CLWfq8hmO+LGSfqIQaCtfFoinGLvvN8WLGrKkbgen/E 0BOT00MPUgS1LXAvlA8KGl19BVVfVNSprcv5LiP2Fh3IFJls2Ayf0O1weMJvEykMlZ0E SpulK52/2BMy1doJUnGkHqo+1gVYZokVG6L1Ea87hF8HCoy18lV0cxdiZpCa9YMhS2hF JuvLT7xIFvCqkoq2117zx2LVwVUTUoAhiNwAA8RED4X1X6d7FyhVyUMTilnvZgwm49aQ XllHcFSA30s+DA39k0mH6AU00V7bXKyynmfBLtEfCUdjMnmJXNdsewkTgBIOC88chmI9 0IyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=O0UO4w4rOsmiQaq+i1vnUzazgKvHygYcq5DooCqL1gY=; b=R1jxduyXAciEPq2LABd2caiaJVqP3u54M+quMOrlcjcQMkJArqS/59hBeySobi26S5 neWLOOiJNhY6mZUcOjrzyRrbpq7cmqwOYlkAT6O+nZfAo6thPg9OEafURCRcFggphpdZ g1M6VDJGSneIdOt6U6h1baOF3ZJkVHaPK7JOfK059qCkBX5CFwFwyHt8MBJZA1GNM32y YPYT3UEZ5i2M0D0zUxoskTvi0IJ0oiYkpxS4vEFbUgQfVf+d5y2vJDNXAXyMQDd/uQJ5 yXkRFYWg1dOZpmbua/u/6EnU037Q42yeZ70KROEXlclDg0RgkECchgSOyMv0NsarBsb/ /72g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Lk5WJM6X; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v9si3259367ilu.78.2021.06.18.11.32.41; Fri, 18 Jun 2021 11:32:54 -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=@linutronix.de header.s=2020 header.b=Lk5WJM6X; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232426AbhFRQFs (ORCPT + 99 others); Fri, 18 Jun 2021 12:05:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231193AbhFRQFr (ORCPT ); Fri, 18 Jun 2021 12:05:47 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C897C061574; Fri, 18 Jun 2021 09:03:38 -0700 (PDT) Date: Fri, 18 Jun 2021 16:03:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1624032217; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O0UO4w4rOsmiQaq+i1vnUzazgKvHygYcq5DooCqL1gY=; b=Lk5WJM6XVHuEenL2LQQDy/GTNl7A7ABxfJ+Tre+2i3C6iDo7CLOZzvoahwtR3/2/0g/yRs fLMh4n/Q2UPL0QGJ6rF6wNmHT7Dv1KIAIEen7GooMGMgy5Q846IXixpG/cPe0o2mLvmxnh h2yjIrMl3PQIJx4TmfT7328LKhtI7ZTzY3414JQCtAEvo1cBBmCv2SVxAJem+LgY9ZUaVD EVQ0rGfQCyKyRi4m+29xDkjEIpONIREetY8I1AWfXafVFADmUaH267o3dz5hDZ5/su2wOt +dci7Xg6qmm9phshQGTaRan6fu9zfzGqODd+fWU8ugC4My3dYEUkYlh552YQ/A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1624032217; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O0UO4w4rOsmiQaq+i1vnUzazgKvHygYcq5DooCqL1gY=; b=UkahyCyqLAROTvFr3I8AZOLGWGcKNiOMezh09cAm/rf4pDYnc6WAtUegitmo4ovck8YBVK a7ElAaWKJdtrHLCg== From: "tip-bot2 for Tony Lindgren" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] clocksource/drivers/timer-ti-dm: Drop unnecessary restore Cc: Lokesh Vutla , Tony Lindgren , Daniel Lezcano , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210518075306.35532-1-tony@atomide.com> References: <20210518075306.35532-1-tony@atomide.com> MIME-Version: 1.0 Message-ID: <162403221618.19906.4283672210096454045.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the timers/core branch of tip: Commit-ID: 3d41fff3ae3980c055f3c7861264c46c924f3e4c Gitweb: https://git.kernel.org/tip/3d41fff3ae3980c055f3c7861264c46c924f3e4c Author: Tony Lindgren AuthorDate: Tue, 18 May 2021 10:53:06 +03:00 Committer: Daniel Lezcano CommitterDate: Wed, 16 Jun 2021 17:33:04 +02:00 clocksource/drivers/timer-ti-dm: Drop unnecessary restore 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 Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20210518075306.35532-1-tony@atomide.com --- 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 index e5c631f..3e52c52 100644 --- a/drivers/clocksource/timer-ti-dm.c +++ b/drivers/clocksource/timer-ti-dm.c @@ -128,7 +128,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))