From patchwork Fri Jan 13 12:31:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 43239 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp243414wrt; Fri, 13 Jan 2023 04:35:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXsBj+GfULTgutk/Fp88IBAcE1iSlD3jes5/K2lE6QIgYqW1mM83JvCeyV4kfALYuNRCiz9e X-Received: by 2002:a17:906:12c1:b0:843:a9fe:f112 with SMTP id l1-20020a17090612c100b00843a9fef112mr58941484ejb.16.1673613348201; Fri, 13 Jan 2023 04:35:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673613348; cv=none; d=google.com; s=arc-20160816; b=AwIdkP76AEaim5H1myT1rE0w1uI9oOmmM5wQJQbkm3YW1tc8Pj+m6yYPDqrshbbpN2 oJXMZyhzfeWeXmxIR2uZNYbQypCyycFMMsB66VV6HZdwkGjxbhmQMJjrAo+gbx6HcmBs pxaLOWrGggKxenbkEurbZEQcpmCUIF2kSCLVmZu8RfVQR7zh/f9UZT4xrFvWIeCmGX0m VjzYSDLsCHUPqx8HRk6hMG0Q7fSKCf+h+amIhC0IqgvNacVDqW1j8H7dP4FodTgxmG+U EqKSAF+b4rOekEKUm4LbvTS1fS6Mred+hVykLgs5hT38JGajJIMg4OAArxIuP6bGECrf U5iw== 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=AiMYGRbr2i7iO+FhMFblx75D0SPORUTgWyRhH0TmmlE=; b=KHtwSnRzVekrxlLGoGTo/qWdn2Emm8D5K8RrIW1mEBSid7shDv0sSN+twbKY6kvwIV r4PpEidEuVsDlGCcE+b2GES3A89bU8JGH0hal+ceLdrru2LCYW3N0g2D0W3E1ctU3LIX uXCzaz0QIdBYxwBUWre9GuWDVvmOKJ/Qtias25ifLhaAgu7kZIc7CGf0xhOsovfNurIF 3PJ8bVHGUCm0S0hNdEoGPcnJ2I6wOm5u9pHgobbulg2ZbLfw0uavlK9UZ/9T6LBnp28g A//krb5Sc3peciusbM5KFSzHq612sv3IddcSYffMr6m7dRph2+djrbimjJimg2UDglR3 Q7sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=04c+lsoz; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="NkqTk/jc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb10-20020a1709077e8a00b0084c855eabfesi21841039ejc.175.2023.01.13.04.35.23; Fri, 13 Jan 2023 04:35:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=04c+lsoz; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="NkqTk/jc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S241418AbjAMMec (ORCPT + 99 others); Fri, 13 Jan 2023 07:34:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241321AbjAMMcO (ORCPT ); Fri, 13 Jan 2023 07:32:14 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ACB5544EA; Fri, 13 Jan 2023 04:31:12 -0800 (PST) Date: Fri, 13 Jan 2023 12:31:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1673613068; 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=AiMYGRbr2i7iO+FhMFblx75D0SPORUTgWyRhH0TmmlE=; b=04c+lsozKK7IFek6kXnZNcakwxgMvZUK0dUK0qYN0HdOZOruoFbyUiBfNKHngOgldnYEuh 51EvV6PXn6I1TP9DXr4+WeERcqNF0PU7SRWTni++6QnCz/EOqw3f4jr98W12MrLP6l6xn4 l5LVOtZOH+PUWPsQHAo+Lzes6UepeqH9Lx+h2fGMjFmd4dDKGipZygGJEiGpj9B0WGuQV0 eJZsK6uCL2IIMsIV4WDTQjIWErgNHetMdjV1C+a+UogjFaNGhBa3S/i1YV/6tNGxC+5rqk n3i4VOv4f4czuFD4ppkYdCXqpMFLb9Qc2C+Hza8Pajrg7/PuUaPV36sVYR6AlA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1673613068; 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=AiMYGRbr2i7iO+FhMFblx75D0SPORUTgWyRhH0TmmlE=; b=NkqTk/jcvHZhxIhAC+VDYBRD958xvLliJaFLKwVcJiQlXO7UvKlYuCjZq7X2kcBMnJWhU7 1kOW6OxCuvRV1eBg== 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, OMAP3: Use WFI for omap3_pm_idle() Cc: "Peter Zijlstra (Intel)" , Ingo Molnar , Tony Lindgren , Ulf Hansson , "Rafael J. Wysocki" , Frederic Weisbecker , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230112195541.538053457@infradead.org> References: <20230112195541.538053457@infradead.org> MIME-Version: 1.0 Message-ID: <167361306785.4906.4134931108392938974.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754910790235488021?= X-GMAIL-MSGID: =?utf-8?q?1754910790235488021?= The following commit has been merged into the sched/core branch of tip: Commit-ID: 40dbea961a3d92a7dec92a72c18ee03d33ccc52a Gitweb: https://git.kernel.org/tip/40dbea961a3d92a7dec92a72c18ee03d33ccc52a Author: Peter Zijlstra AuthorDate: Thu, 12 Jan 2023 20:43:50 +01:00 Committer: Ingo Molnar CommitterDate: Fri, 13 Jan 2023 11:48:16 +01:00 cpuidle, OMAP3: Use WFI for omap3_pm_idle() arch_cpu_idle() is a very simple idle interface and exposes only a single idle state and is expected to not require RCU and not do any tracing/instrumentation. As such, omap_sram_idle() is not a valid implementation. Replace it with the simple (shallow) omap3_do_wfi() call. Leaving the more complicated idle states for the cpuidle driver. Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Ingo Molnar Tested-by: Tony Lindgren Tested-by: Ulf Hansson Acked-by: Tony Lindgren Acked-by: Rafael J. Wysocki Acked-by: Frederic Weisbecker Link: https://lore.kernel.org/r/20230112195541.538053457@infradead.org --- arch/arm/mach-omap2/pm34xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index d73c7b6..9a3535b 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c @@ -294,7 +294,7 @@ static void omap3_pm_idle(void) if (omap_irq_pending()) return; - omap_sram_idle(); + omap3_do_wfi(); } #ifdef CONFIG_SUSPEND