Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2917895rwb; Mon, 15 Aug 2022 14:02:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR67LOXj9u4MSvcnDktRtpi3OL6/qiHcWY1M4SP8tOcsf7656i6GLdVk2KzsYN0G2OnY4q4/ X-Received: by 2002:a17:90a:bb14:b0:1f3:5f1:6de9 with SMTP id u20-20020a17090abb1400b001f305f16de9mr20761999pjr.148.1660597355322; Mon, 15 Aug 2022 14:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597355; cv=none; d=google.com; s=arc-20160816; b=HzcLZjUfaZGoJ4xHYwxy+NGFmCVjlxxEH58fwoQdw9Wbwe/77/C9SrTx2/HTWRgPEV /kMDIzJwKB8wfSjLr9wvKSNkbqJa/ocMWGreyQl7nRvrnDW4bfgehML5Ywrpbwz6sTwi zOKdEgBEQVMNFZPA259Rp2N8yLbtv9Pm/YRHtQfn0p8xaNlRWNTc0DuLXDkQDeaY4Ovh FEcz+D+JOZBbrbhRfwOTXa4hx6OFUHgaKkImW2hUKSRmgLyB/y4nakBCjNAsfAwqF9Vc eAes8nbiu8xYZ38ErVPDZuthdsf30+bPYhH3zxtI6eZ/NP2sswcQYCzm59m18lYuGoi8 pHHg== 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=WXscevinWRbpgkfxsZDKgolJe5zb3fkBWymv1tsTNIE=; b=CtO/4OpPAZHCE6xQJvZ9sJaoj3cRbnCURhPgt41jm1AHvj/FrFxH6M3m5+1s6VN0u5 ZwSGe/7FsHWtiPBYW1eDxin9ZtlLL4R8LwYwJ84Yyg6+A/Q2y3gVMXTx7r5Iig9EdD1Y 22Tqc2kxb+49J7/eRXmoVJuqOXNFPS4rVQL5cG6O3+oFi22LCNKLVWd8TcdhVeWhnTd9 vUvCEOLc2tBM71L4ZX//XkM4qE2wqHodzli6QdR9c6Q5e4gJkmxNL9qLpR/PScUP1WjQ fz0PZIBQ3a5Qjeg3Brmj3NK/miqvEdJ8Zs+Sejbowj5KeJuuVc1Yugd1Y839mEoMx3Nn GULA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ow3VRmYY; 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 j4-20020a17090adc8400b001f0311d12d0si15056660pjv.185.2022.08.15.14.02.23; Mon, 15 Aug 2022 14:02:35 -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=Ow3VRmYY; 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 S233310AbiHOUct (ORCPT + 99 others); Mon, 15 Aug 2022 16:32:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347942AbiHOU06 (ORCPT ); Mon, 15 Aug 2022 16:26:58 -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 DF3299F0FD; Mon, 15 Aug 2022 12:03:54 -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 0B4BCB81062; Mon, 15 Aug 2022 19:03:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4124BC433C1; Mon, 15 Aug 2022 19:03:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590228; bh=mpaC7JTvOmrNnf3T/xWqblB2Q03w8cm7v5oJam1g27I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ow3VRmYYj3JtGEPKiXsTRyro6f1EY0iDKrx+U/R7ckRkM0ptXOQ9VXzuWtgYXw9IO B3A1zed6991BvVdalzSxxGB8GSj1FphsNOpTwvKum4dICFWgMpPhEwEsgO17QgzqX9 nZB3LO6H3n+EOKsezhufaB0K7ISJlGyTgg/okaqE= 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.18 0192/1095] ACPI: processor/idle: Annotate more functions to live in cpuidle section Date: Mon, 15 Aug 2022 19:53:11 +0200 Message-Id: <20220815180437.570682105@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 eb95e188d62b..573ba7f617e8 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -602,7 +602,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) @@ -659,7 +659,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); @@ -688,7 +688,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