Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3020479rwb; Mon, 15 Aug 2022 16:17:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR5yHY03EP2SLaY50mRlEfsoucrsnII2Paef/HqOgXDksaDVJ6hE7THkuV0n2uV2eQXnIxPv X-Received: by 2002:a05:6a00:b8d:b0:52d:dead:5570 with SMTP id g13-20020a056a000b8d00b0052ddead5570mr18183262pfj.56.1660605456336; Mon, 15 Aug 2022 16:17:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605456; cv=none; d=google.com; s=arc-20160816; b=GFYlfPFALqnQgdDBGqikOCorXHeT3g1ClQFlkHANmSQKxUiRjACWhzp3M+HyMhQ/uW VK2mvB/Q4utuiLP4ugbvPoY+opbaskXCkOkbGkRiFJlleZL7OJCPeQyrh7hJnrA39E4h aEj/vlpVVBvzBbu8YN7u1hxGog2GnyNiqardqmDnJ2q1Irhzcq8Q1u1yTJLakogPcdIo NV6ntTesLN7U7ylcFWY6xkS2CIdE3DFPS0Vw5QKOJOLvSq5NQ9S2o5HdSCj03T7pV/h7 l+i7w+GV5HLX2i3SNLbyBDXJlMIBpRLOeTRn9MlbVGUORy41xRXtZQIajRYyqzZ+AtGI N9BQ== 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=LLeCFDWFcUUi5Q+AVl5pieayucoIemNvtf4xRpWFNfk=; b=Uhw1NtiSbmTnAPU6KPuPSSDe/Lr0TkQV9XM0EhOgFP3vSeNLa9W0HL08pkbvFm8fbm X3XocOznBqhVEQJEJ77QDClhB7/8VwMHTHu3efEo31V0QYl79o51q1XwUbivxrFp4PRm oPXpYESjfryC7ciB5D3Nvql6W8cY7tpnRYheW3lThDQBY7Gvfe9A7yvzhZRre5BEtO9D jlFS6aDOlYervXpxBJfMq7hwpK9Djq380oBQ3viCnT7sykUNxZ3gaMMX3Rcblq5OTP0B NxXnpaWkCHNaRPlKZDMTpH3lI44nebEdWr+x110iXMkaiSfCjgpsm7qTEF28HAvT2S4y xh/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lyoJgoIq; 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 jf1-20020a170903268100b0016f9027610dsi10232889plb.234.2022.08.15.16.17.24; Mon, 15 Aug 2022 16:17:36 -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=lyoJgoIq; 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 S1351183AbiHOWlf (ORCPT + 99 others); Mon, 15 Aug 2022 18:41:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350805AbiHOWhK (ORCPT ); Mon, 15 Aug 2022 18:37:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBE1412F72E; Mon, 15 Aug 2022 12:50:29 -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 dfw.source.kernel.org (Postfix) with ESMTPS id A452A61226; Mon, 15 Aug 2022 19:50:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A6A4C433C1; Mon, 15 Aug 2022 19:50:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593028; bh=wn8D0zEklwNCAfBuD83TSNKEwQFVSQBJcK0RNaG+0AQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lyoJgoIqMRi+5VRJbjKlcMug/ha9ZC7UOAxm6iu3e9gYfJn5wX97+YbUo9Z2456kz SY67ehOK1oPxN6J0fiSiYvy2ugeS40Ym3PEk12hfwtp4VwO0N3leGXDBXP0iTKlRcd xIQKFViG7CwrsbzUMRKME3Lj5Ebqy32y2I939RTE= 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.19 0202/1157] ACPI: processor/idle: Annotate more functions to live in cpuidle section Date: Mon, 15 Aug 2022 19:52:38 +0200 Message-Id: <20220815180447.763419838@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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 6a5572a1a80c..13200969ccf3 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -607,7 +607,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) @@ -664,7 +664,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); @@ -693,7 +693,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