From nobody Sun Apr 5 20:03:34 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4359CC54EBD for ; Fri, 13 Jan 2023 12:36:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241637AbjAMMgj (ORCPT ); Fri, 13 Jan 2023 07:36:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240845AbjAMMcT (ORCPT ); Fri, 13 Jan 2023 07:32:19 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D23B56891; Fri, 13 Jan 2023 04:31:16 -0800 (PST) Date: Fri, 13 Jan 2023 12:31:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1673613075; 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=HTcUQs4uK1vY95BNm1lDcumclDV3Mv1N0dB6QITg0wY=; b=heICSrpeRgdFQxt8EgyQGmUaCUqpHzTJ8VwFdmL48JW7kcSypCJP57zaML/Ua+xxh+XWw/ yNMHIevKvuBgkC5U8gs3aEmkPt8CB3MwWAHPlER61tFCiHKnZa2DFE1Ux6svo8RgKagn6+ 0oHV5aR2GQqxD9hhX7HwBfgCefrFWEGtMCHNauz0hIO5NZzhzNdj0phiF6amOXrejPkb/4 Ke+7yMeoV/fhTkBse1iVOnZZAKGI+baFo7xdKRR8Q3qerb3OBV+ptmeKaQz1//MD//C7Kg bm1x5TtexKSBvuMp0E9ABBbwHII+90h7cAcf/U1K8JPa1dTJXa9MO/xyOqw9RQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1673613075; 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=HTcUQs4uK1vY95BNm1lDcumclDV3Mv1N0dB6QITg0wY=; b=tX0PLiOWZYSlpN12E+xxzk1WlX4kGtHkC3c7CnMHLLNZyZ5SNr1YwB9l/Pf9dz1I1O+VLA 9YNMMKK0gSfJCLDw== From: "tip-bot2 for Peter Zijlstra" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] cpuidle, ARM/imx6: Push RCU-idle into driver Cc: "Peter Zijlstra (Intel)" , Ingo Molnar , Tony Lindgren , Ulf Hansson , Frederic Weisbecker , "Rafael J. Wysocki" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230112195539.821714572@infradead.org> References: <20230112195539.821714572@infradead.org> MIME-Version: 1.0 Message-ID: <167361307465.4906.223147863550715410.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: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: b3f46658ce40a3467cda82f920dd9d5325ab0eaf Gitweb: https://git.kernel.org/tip/b3f46658ce40a3467cda82f920dd9d532= 5ab0eaf Author: Peter Zijlstra AuthorDate: Thu, 12 Jan 2023 20:43:22 +01:00 Committer: Ingo Molnar CommitterDate: Fri, 13 Jan 2023 11:46:40 +01:00 cpuidle, ARM/imx6: Push RCU-idle into driver Doing RCU-idle outside the driver, only to then temporarily enable it again, at least twice, before going idle is suboptimal. Notably both cpu_pm_enter() and cpu_cluster_pm_enter() implicity re-enable RCU. Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Ingo Molnar Tested-by: Tony Lindgren Tested-by: Ulf Hansson Reviewed-by: Frederic Weisbecker Acked-by: Rafael J. Wysocki Link: https://lore.kernel.org/r/20230112195539.821714572@infradead.org --- arch/arm/mach-imx/cpuidle-imx6sx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/cpuidle-imx6sx.c b/arch/arm/mach-imx/cpuidle= -imx6sx.c index 74ea172..1dc01f6 100644 --- a/arch/arm/mach-imx/cpuidle-imx6sx.c +++ b/arch/arm/mach-imx/cpuidle-imx6sx.c @@ -47,7 +47,9 @@ static int imx6sx_enter_wait(struct cpuidle_device *dev, cpu_pm_enter(); cpu_cluster_pm_enter(); =20 + ct_idle_enter(); cpu_suspend(0, imx6sx_idle_finish); + ct_idle_exit(); =20 cpu_cluster_pm_exit(); cpu_pm_exit(); @@ -87,7 +89,8 @@ static struct cpuidle_driver imx6sx_cpuidle_driver =3D { */ .exit_latency =3D 300, .target_residency =3D 500, - .flags =3D CPUIDLE_FLAG_TIMER_STOP, + .flags =3D CPUIDLE_FLAG_TIMER_STOP | + CPUIDLE_FLAG_RCU_IDLE, .enter =3D imx6sx_enter_wait, .name =3D "LOW-POWER-IDLE", .desc =3D "ARM power off",