Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2811468rwb; Mon, 15 Aug 2022 11:49:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR6FKrfUKE5YtRxw8DlUNainmG6zbD3PKpFMZjmk0UtGcVwVdcPdy6ATWrvQNdpqBtQmSSQ4 X-Received: by 2002:a05:6402:430e:b0:43d:1cf6:61ec with SMTP id m14-20020a056402430e00b0043d1cf661ecmr15399807edc.194.1660589378520; Mon, 15 Aug 2022 11:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660589378; cv=none; d=google.com; s=arc-20160816; b=u0XWVQHBGqMifNcTalkBm7rksKJAqEHNTbjLbyK1O4KZVShS3NpJ2jxuFDU0c+NMJW gJ0tWhvSlt/9KUWfD+OSsCFqk11Us0x1VpF1NJXQpj8jwX9CAGe2IJ3G3HyabnRCluxl HW1BdZbxxn5dxHgiJrUsl3ERQ3bOCLo2Vz4pKoYzJ1bzmMTZuxZ/wetLdipmWoxTFOIR ib33GTHW+VnTn5pjOAtBU1aCtuN/SQtSYRpN4k5ymbeebwb0vhRi8+3NS8zQ498qb8+3 nB6r0fkAmqP/Fzy5Nyv2zlBrUiYTbjprnYf+fmRpJcKSbNaSDI5clcpVwlAodnI9CVca CGBw== 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=nustOxNZI1ucRpOyalRPvYvlWcrWpRCcX8Ox16Fwlcg=; b=gHwUbEpKcu/BSO/bJwgafP9kDOvxVkiydc7VrWwzNL2sQ2SNF2Evklm3CDmUbECO+M nFor+QmpnI60zoh52JFjuvpw9w0V6omI+MbZjrGQxZG9nD7guXCf0b7noeACLe2zreyu 4HDh619hqAuOI/vj36UqBvIlMnx4wwPTY1Lu98LIr0FT2io6xycH2Vx9+Y8iJtnzKmdo MHCMnZsO79jd1xdtKA2wy8JTlqX0/GRGTIHpG9ZuZxXhsKXrIc6d6kK9kYpKP0SdWZyj cHtKCL1sVfic8GmR+fK97hNDbN2KVoKdBAtRDFMv7S7C8F40BDm6HaXQdaXMw68LEtmX e0wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YDHPG5Mg; 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 f21-20020a1709062c5500b007305cca877csi6599246ejh.425.2022.08.15.11.49.12; Mon, 15 Aug 2022 11:49:38 -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=YDHPG5Mg; 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 S239558AbiHOShi (ORCPT + 99 others); Mon, 15 Aug 2022 14:37:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243951AbiHOSgJ (ORCPT ); Mon, 15 Aug 2022 14:36:09 -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 11F0A2CDD6; Mon, 15 Aug 2022 11:22:58 -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 860326068D; Mon, 15 Aug 2022 18:22:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78B05C433D6; Mon, 15 Aug 2022 18:22:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587776; bh=v4Z1h7wfywCJHIbiHuBe6xaT4pkVjjYSygQnkWebSFs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YDHPG5MgcdWU78/EEkAlD8Bo5NKl6/N/MBpolbSDCMtHtOJQm6+DYyDy+irtzuRrw tEnGxbOccwYPYjNKoYKUmUMZ/iJZMUkYG7wvl2c09XgKyBWAPX137DrOUncaEBmBpR PJy5VZNw6rG8pFtZtMGhhMTBsHyGn2jUgyNUPcPc= 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.15 160/779] ACPI: processor/idle: Annotate more functions to live in cpuidle section Date: Mon, 15 Aug 2022 19:56:44 +0200 Message-Id: <20220815180344.182433607@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 aedcb92491f2..dc880dad2ade 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -604,7 +604,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) @@ -661,7 +661,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); @@ -690,7 +690,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