Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3553649pxp; Tue, 8 Mar 2022 17:18:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCNNH3YK3hiNAOvqTJOvU5mX7NPt9ke+i5jX+n7nEFPMPLl3LSa6dlRKufvB+1ZX6QuZmc X-Received: by 2002:a17:90a:5302:b0:1b9:ba0a:27e5 with SMTP id x2-20020a17090a530200b001b9ba0a27e5mr7537209pjh.91.1646788702508; Tue, 08 Mar 2022 17:18:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646788702; cv=none; d=google.com; s=arc-20160816; b=flIrQbPsHEJsh7ONay+bj9VC4mS4cbS7Y5rQJ6VlDGumWyz0WyVhiIZ0vKRvQtJb1h o+iEou8wWyd4Fhw+ENkqZ0cwYPSzfavAbqJnRAim41lSRQ6mAJZOt/ZG2JAKa/FSnByX 08NH7n+kpG7r9qfRKagpmZ/9iEBfVkFhqZ7H2zpr5H/Si9DWZUv157htSP4XlkSlpfPo 8heGDuqKCLYJn2w+neetgQUfqzDsag1aylX3g2TkC5nWkTOB9sHqMUeQGMKz6aqaklhL HDXMWkdlurPW31f213Anq75/DXdA1FyZ0Vl+RF2FQhfQfQ5AIRTxY/Ug3Tpu3I4Iujbt neaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=y4zBgpd1vO4K4whJ0aeFp8vuGgyaQ1r84w8kmZDLrWQ=; b=A3EeBJPRT74FrXg2sD25wLP8mFJAEF4z9/rk+VzMRlkW8QSSmJiMeIBXvw5VMsIB6U 9gcFXu2Nti933O1cm5TP0RLVjDTd+dwtFUzUhKysIbnzRYAVKpFkUZfcs56tLQ4bzVtY lVBN4V9lGxsC2EEX+2smX+2ckx9wjO4tL0Pzh/r3WhlBYRftspSNfBPoyVuIvYF7Fr/j riLDf5bxbbYEsIkjJ8TK5b6UMcoQAfrpyTUyraK4QnB02+xOFdIsauCbNMG3G21V/iS/ 9RW+b3niyM/DsNVQMa5YwBR7x2J7weoJPOksQ/meqLq+3abL84jKGVwF45yXpJAr2Cpj 8fqw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w19-20020a170902ca1300b00151bddf37e1si474748pld.7.2022.03.08.17.18.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 17:18:22 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5A99F180D07; Tue, 8 Mar 2022 16:13:15 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349622AbiCHSYP (ORCPT + 99 others); Tue, 8 Mar 2022 13:24:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349693AbiCHSXS (ORCPT ); Tue, 8 Mar 2022 13:23:18 -0500 Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCE9C56C36; Tue, 8 Mar 2022 10:22:21 -0800 (PST) Received: by mail-yb1-f180.google.com with SMTP id h126so39522918ybc.1; Tue, 08 Mar 2022 10:22:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=y4zBgpd1vO4K4whJ0aeFp8vuGgyaQ1r84w8kmZDLrWQ=; b=OcmUHXBE2t8jVn84FdYwcmOC88NQcIz9fUwGJNKpNgI/X43B1r6ic/loOWFl7/xpbZ zkDkjzih/SQ/SzTeq1toEh7qkoCidRO5096O4b3ETISZDVHr8VudsudwKXUccxRwzgaO Jg7k5pQwHa1DTxcOJJ9Il4CdI6fUX5wieLv4lm96DOznTavPA3+r8dDThsgFkFLEyG+L Kz3nzQ7UMwWn1wlmpiAIHQzSESuYxznW4tRd9dUMidN/SXNhpajjxo0pAYKyISbeCfhu sxfCCrKvGqQ+DuSNXi5i49ufwQOCYvjj+ASrBDOOxyxeJtEbvj0YyI9D5HTmdw2yAEWV X5Kw== X-Gm-Message-State: AOAM532YP8jrrB0PYCtlVXoiggtLNijZCaGzpb4ZiSY3Hon0+UUSCArb qxHLKz8cW6uDfZpjS49U+vnY/J3MtRVO6q4QZTM= X-Received: by 2002:a25:3a41:0:b0:628:86a2:dbc with SMTP id h62-20020a253a41000000b0062886a20dbcmr12845470yba.633.1646763741101; Tue, 08 Mar 2022 10:22:21 -0800 (PST) MIME-Version: 1.0 References: <20220302180913.13229-1-ionela.voinescu@arm.com> <20220302180913.13229-2-ionela.voinescu@arm.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Tue, 8 Mar 2022 19:22:10 +0100 Message-ID: Subject: Re: [PATCH v3 1/3] x86, ACPI: rename init_freq_invariance_cppc to arch_init_invariance_cppc To: Ionela Voinescu 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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 -> > and who's expected to pick this up? -> and then I guess I can pick it up if everybody agrees. > > --- > > 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 > >