Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp270659pxp; Wed, 9 Mar 2022 02:36:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzknRI4Y+jPZqizj4ujvpXRRdTCCSEfLX0BLVCL7Al6bEeXYp6onNAA7QCnzDDKR20JjroT X-Received: by 2002:a17:907:7e90:b0:6da:49e4:c7be with SMTP id qb16-20020a1709077e9000b006da49e4c7bemr17054655ejc.493.1646822161864; Wed, 09 Mar 2022 02:36:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646822161; cv=none; d=google.com; s=arc-20160816; b=j9XP3dzmCpyrAtMJcuR6h/a496zSxGVPGE6351yugvPKOfLzf/8saC1I5gmR+ShsoY s1ZCC2LDyPnVuu+HyHJsBQv+3pEngGlzvME/JolBmJ860gVq9uzpsa0rCTUvp0QrBC5u dzrzcsMpkS4dc9x6clAFIDuA4TG20M8OFJhEZwlobLiYt/ri1o3LG0IZySDbZ6hUUaXQ FIlqPkKmQb5wck8IjjlWgAQg9Kqfb5AaTxqF63yadra2P2vuuWF5bxD35NmXY3aZyAFG 1iAayay4SKcEIKrZDwniEAT05obcje51h8TAgOK9cviQpHodObG9rrNWUv6L2k8vm0la MITw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=u3HOainLHOjL9PXYXu/pWn8mQdP1mu09JCdW7LuDDnY=; b=Y4UiXJD2UhmD3ps9CgmVUzWSkt/wu9MNt6p9NR7n8qYYcu5cLLtqU+YJD5LdVPp3CF BdC0KBhkioRSw+lGPIoBIWsI6gYD7gCvw9GGClkcMAtSaosm2ZnNuG4Its2KDKfEdDU6 l7Oat/RWLOVW3YG2Y1EgYg3lYgRjIO+TOtdb8knU1iCkhvT6IjWewD+ofkWpr2o7F+yK S+REF/kVWuGaAge+Uok9DYQ3Oeyw9GoAGRLH4ACluVmneOUIx6AhPPyKFcHDHumCoTXC 2OP7pZRpUcmpeNciKD6Yxil/pmZdV0ItBUl7/fJbEN2JHd4la/S7152IP6B6ajlInAOX 9I6Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a50e082000000b004138b7650e8si939140edl.138.2022.03.09.02.35.38; Wed, 09 Mar 2022 02:36:01 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232130AbiCIJbe (ORCPT + 99 others); Wed, 9 Mar 2022 04:31:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232125AbiCIJbd (ORCPT ); Wed, 9 Mar 2022 04:31:33 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D54A516EA98; Wed, 9 Mar 2022 01:30:34 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 69DBC1650; Wed, 9 Mar 2022 01:30:34 -0800 (PST) Received: from localhost (ionvoi01-desktop.cambridge.arm.com [10.1.196.65]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0BF583FA20; Wed, 9 Mar 2022 01:30:33 -0800 (PST) Date: Wed, 9 Mar 2022 09:30:32 +0000 From: Ionela Voinescu To: "Rafael J. Wysocki" Cc: Sudeep Holla , "Rafael J . Wysocki" , Thomas Gleixner , Ingo Molnar , Giovanni Gherdovich , Catalin Marinas , Will Deacon , Valentin Schneider , Dietmar Eggemann , Sean Kelley , Pierre Gondois , Linux Kernel Mailing List , ACPI Devel Maling List , Linux ARM Subject: Re: [PATCH v3 1/3] x86, ACPI: rename init_freq_invariance_cppc to arch_init_invariance_cppc Message-ID: References: <20220302180913.13229-1-ionela.voinescu@arm.com> <20220302180913.13229-2-ionela.voinescu@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,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 On Tuesday 08 Mar 2022 at 19:22:10 (+0100), Rafael J. Wysocki wrote: > On Tue, Mar 8, 2022 at 7:05 PM Rafael J. Wysocki wrote: > > > > On Wed, Mar 2, 2022 at 7:10 PM Ionela Voinescu wrote: > > > > > > init_freq_invariance_cppc() was called in acpi_cppc_processor_probe(), > > > after CPU performance information and controls were populated from the > > > per-cpu _CPC objects. > > > > > > But these _CPC objects provide information that helps with both CPU > > > (u-arch) and frequency invariance. Therefore, change the function name > > > to a more generic one, while adding the arch_ prefix, as this function > > > is expected to be defined differently by different architectures. > > > > > > Signed-off-by: Ionela Voinescu > > > Tested-by: Valentin Schneider > > > Cc: Thomas Gleixner > > > Cc: Ingo Molnar > > > Cc: Giovanni Gherdovich > > > Cc: "Rafael J. Wysocki" > > > > Acked-by: Rafael J. Wysocki > > That said it will conflict with this series from Rui: > > https://lore.kernel.org/linux-acpi/20220214101450.356047-1-ray.huang@amd.com/ > > applied by me a while ago. > > Maybe consider rebasing when this gets to linux-next -> Will do that! > > > and who's expected to pick this up? > > -> and then I guess I can pick it up if everybody agrees. Many thanks, Rafael! > > > > --- > > > arch/x86/include/asm/topology.h | 2 +- > > > drivers/acpi/cppc_acpi.c | 6 +++--- > > > 2 files changed, 4 insertions(+), 4 deletions(-) > > > > > > diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h > > > index 2f0b6be8eaab..5ec70f186775 100644 > > > --- a/arch/x86/include/asm/topology.h > > > +++ b/arch/x86/include/asm/topology.h > > > @@ -223,7 +223,7 @@ static inline void arch_set_max_freq_ratio(bool turbo_disabled) > > > > > > #if defined(CONFIG_ACPI_CPPC_LIB) && defined(CONFIG_SMP) > > > void init_freq_invariance_cppc(void); > > > -#define init_freq_invariance_cppc init_freq_invariance_cppc > > > +#define arch_init_invariance_cppc init_freq_invariance_cppc > > > #endif > > > > > > #endif /* _ASM_X86_TOPOLOGY_H */ > > > diff --git a/drivers/acpi/cppc_acpi.c b/drivers/acpi/cppc_acpi.c > > > index 866560cbb082..bfd142ab4e07 100644 > > > --- a/drivers/acpi/cppc_acpi.c > > > +++ b/drivers/acpi/cppc_acpi.c > > > @@ -633,8 +633,8 @@ static bool is_cppc_supported(int revision, int num_ent) > > > * ) > > > */ > > > > > > -#ifndef init_freq_invariance_cppc > > > -static inline void init_freq_invariance_cppc(void) { } > > > +#ifndef arch_init_invariance_cppc > > > +static inline void arch_init_invariance_cppc(void) { } > > > #endif > > > > > > /** > > > @@ -816,7 +816,7 @@ int acpi_cppc_processor_probe(struct acpi_processor *pr) > > > goto out_free; > > > } > > > > > > - init_freq_invariance_cppc(); > > > + arch_init_invariance_cppc(); > > > > > > kfree(output.pointer); > > > return 0; > > > -- > > > 2.25.1 > > >