From nobody Sun Apr 5 20:05:09 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 F108AC54EBE for ; Fri, 13 Jan 2023 12:35:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241513AbjAMMfx (ORCPT ); Fri, 13 Jan 2023 07:35:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241123AbjAMMcS (ORCPT ); Fri, 13 Jan 2023 07:32:18 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E77B1559F7; Fri, 13 Jan 2023 04:31:14 -0800 (PST) Date: Fri, 13 Jan 2023 12:31:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1673613073; 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=0mXTiSRpmroi1SGTJNXM+LzGN21KUYrGkkMyQ+4bNa8=; b=avfzgtDduB0RoaHAPB6wK3zgKRyRq1icK1w3FcPeSne38H0mFb5MkgwCDACtcn54exZcFn Fvt5OeBcVkmHPB3hAGVRHZ6+ukvkAHe+20s6WxxMr5COG7G5o1IO2U/cWKK9nKv2ygjDXf rRIKBbnueV9WwT8ROYrl9sHsjA8/Z5wbAb+gI/rNM8LJTYiu4qf9N4sprkhwso37CKGWV0 KOl+xy6jBDVf1fF24W62YeBuCLHQQlqDAr6yA9yTvoeSdkDWB2+mlnUJ9Zt2ml+Z7BqdIV +SFFucWINORtnJzlYCcBqq/k3ZI6lwaPTSQLkT6y+KUaQ4u2IWBGKcN5ZRC45Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1673613073; 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=0mXTiSRpmroi1SGTJNXM+LzGN21KUYrGkkMyQ+4bNa8=; b=Y9YSU42sewHMa5b94NfQK6FHUm7I44ZPDjAHmtsMT6hrKkHNkJNmZkwLoxckhlTlBygmk3 fFX8P47VZL5E/ZAQ== 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] acpi_idle: Remove tracing 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: <20230112195540.251666856@infradead.org> References: <20230112195540.251666856@infradead.org> MIME-Version: 1.0 Message-ID: <167361307320.4906.12397957651023647321.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: 8ce78470bf2dd1d08107736e813fa62e09aa4647 Gitweb: https://git.kernel.org/tip/8ce78470bf2dd1d08107736e813fa62e0= 9aa4647 Author: Peter Zijlstra AuthorDate: Thu, 12 Jan 2023 20:43:29 +01:00 Committer: Ingo Molnar CommitterDate: Fri, 13 Jan 2023 11:48:15 +01:00 acpi_idle: Remove tracing All the idle routines are called with RCU disabled, as such there must not be any tracing inside. While there; clean-up the io-port idle thing. Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Ingo Molnar Tested-by: Tony Lindgren Tested-by: Ulf Hansson Acked-by: Rafael J. Wysocki Acked-by: Frederic Weisbecker Link: https://lore.kernel.org/r/20230112195540.251666856@infradead.org --- drivers/acpi/processor_idle.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index a589cfa..48fcd28 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -109,8 +109,8 @@ static const struct dmi_system_id processor_power_dmi_t= able[] =3D { static void __cpuidle acpi_safe_halt(void) { if (!tif_need_resched()) { - safe_halt(); - local_irq_disable(); + raw_safe_halt(); + raw_local_irq_disable(); } } =20 @@ -523,8 +523,11 @@ static int acpi_idle_bm_check(void) return bm_status; } =20 -static void wait_for_freeze(void) +static __cpuidle void io_idle(unsigned long addr) { + /* IO port based C-state */ + inb(addr); + #ifdef CONFIG_X86 /* No delay is needed if we are in guest */ if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) @@ -569,9 +572,7 @@ static void __cpuidle acpi_idle_do_entry(struct acpi_pr= ocessor_cx *cx) } else if (cx->entry_method =3D=3D ACPI_CSTATE_HALT) { acpi_safe_halt(); } else { - /* IO port based C-state */ - inb(cx->address); - wait_for_freeze(); + io_idle(cx->address); } =20 perf_lopwr_cb(false); @@ -593,8 +594,7 @@ static int acpi_idle_play_dead(struct cpuidle_device *d= ev, int index) if (cx->entry_method =3D=3D ACPI_CSTATE_HALT) safe_halt(); else if (cx->entry_method =3D=3D ACPI_CSTATE_SYSTEMIO) { - inb(cx->address); - wait_for_freeze(); + io_idle(cx->address); } else return -ENODEV;