Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1863011rwb; Fri, 19 Aug 2022 10:37:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR71BNbb6U33zauUteSiFt2OAr9Xdajrde6NtMv77tixODP2wR7+zS0jgv1lVS7cviNx5lfX X-Received: by 2002:a17:902:d48d:b0:16f:5ce:1d08 with SMTP id c13-20020a170902d48d00b0016f05ce1d08mr8255272plg.49.1660930676051; Fri, 19 Aug 2022 10:37:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930676; cv=none; d=google.com; s=arc-20160816; b=o3ddhjuZf7unTe2/kk+Qk5u1IIWDGy0aBXaWTag9+iKgyc/FbKZUepXfIWIyPPR+cE 22efRGk8rYg5LYkRq3RWFJNc/ta5mJ3nB4J/DODsoVm1vSvpmnWbDdzNDiAZHpF9TbcO b3chLPX9f0m2G9iohSl5yrTiMxQgbV7dxSwn9e8RUZlJTYqbwpXrWZMW9+pZUTV+26OL a+Z85GqgHWeJhjvFTovvZr189eAY+TUWKP+EjDUHAK7PRodvStvHIyoyjm5MT6H8iKqp dmAWXCnJmR+3LEKF9FbAuRYI8uy8hZIXwFPX7tIB6/8VoKj9tdRs0BZsfiMe3sLpDoE0 Qp6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3VLR778dY6hLWj7nWElIVA/JKJHWnf2RuSYnKRRdR+Q=; b=Wb7+XBgWF72SXrgO5MWYF1SoFGxPlsmomVRbOqM6AWZu/YYxRZ/DhBCW4NLvjy/UQg QTGTG+fYuA8bJxY8WmZ0qqtDhk3wWQT/40O3EyxM/ooCPZ5RmtFp/W/hYVhS7bX/jmy0 wy2o7wRQEPpTGBzoUS3bs+0XUfA2+bDvo/GlSir65ik1eMkRkgFhuMdrVDSANpr4fNDc AKEBVuWTx18I9KLPGrh1ukHf0dMZWG1veZIJswhV0pWW+4dxKVcVFv25S1zBA6MHl+N/ rLIiVFNeXCxEacDEuxf+RA4Rz5nadf+Ujs2UYfuLee20XG6deH0HOgacrisfYX3wl/LJ EU8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BKwzBZGW; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j21-20020a170902759500b0016ede1297cdsi4111446pll.494.2022.08.19.10.37.44; Fri, 19 Aug 2022 10:37:56 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=BKwzBZGW; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350918AbiHSP7A (ORCPT + 99 others); Fri, 19 Aug 2022 11:59:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350996AbiHSP4L (ORCPT ); Fri, 19 Aug 2022 11:56:11 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29C692CDCB; Fri, 19 Aug 2022 08:51:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2920EB8277D; Fri, 19 Aug 2022 15:51:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75C46C433C1; Fri, 19 Aug 2022 15:51:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660924268; bh=0fwCksaYGdTl370FKhBakJQY3ZPaLVfW+9mPsZPfFWk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BKwzBZGW4Z0q2cTgg0xYZU2frIv8uqJJra7qBhjrJYP7IvalnZNQ4ZNsW7lIvjtka YVyIG94WhKhhUYidwErjabhvMVb5iia+yNjcomCyM+CD69uSSnPgxjOgVqM+kKoo3u 8XrgaM0FjdVigUJhwZOhvmbl9XrSaErgKoDcMXf8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Guilherme G. Piccoli" , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 5.10 112/545] ACPI: processor/idle: Annotate more functions to live in cpuidle section Date: Fri, 19 Aug 2022 17:38:02 +0200 Message-Id: <20220819153834.300677736@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Guilherme G. Piccoli [ Upstream commit 409dfdcaffb266acfc1f33529a26b1443c9332d4 ] Commit 6727ad9e206c ("nmi_backtrace: generate one-line reports for idle cpus") introduced a new text section called cpuidle; with that, we have a mechanism to add idling functions in such section and skip them from nmi_backtrace output, since they're useless and potentially flooding for such report. Happens that inlining might cause some real idle functions to end-up outside of such section; this is currently the case of ACPI processor_idle driver; the functions acpi_idle_enter_* do inline acpi_idle_do_entry(), hence they stay out of the cpuidle section. Fix that by marking such functions to also live in the cpuidle section. Fixes: 6727ad9e206c ("nmi_backtrace: generate one-line reports for idle cpus") Signed-off-by: Guilherme G. Piccoli Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/processor_idle.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 9921b481c7ee..e5dd87ddc6b3 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -609,7 +609,7 @@ static DEFINE_RAW_SPINLOCK(c3_lock); * @cx: Target state context * @index: index of target state */ -static int acpi_idle_enter_bm(struct cpuidle_driver *drv, +static int __cpuidle acpi_idle_enter_bm(struct cpuidle_driver *drv, struct acpi_processor *pr, struct acpi_processor_cx *cx, int index) @@ -666,7 +666,7 @@ static int acpi_idle_enter_bm(struct cpuidle_driver *drv, return index; } -static int acpi_idle_enter(struct cpuidle_device *dev, +static int __cpuidle acpi_idle_enter(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) { struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); @@ -695,7 +695,7 @@ static int acpi_idle_enter(struct cpuidle_device *dev, return index; } -static int acpi_idle_enter_s2idle(struct cpuidle_device *dev, +static int __cpuidle acpi_idle_enter_s2idle(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) { struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); -- 2.35.1