Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp618458pxb; Wed, 25 Aug 2021 10:50:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwf7JO3u5D0MJBDO7TMplhdTaSUQ01S/29ef+J95Wgps1NMMd3Nq+1VuoNHbrtkNAVnnjYv X-Received: by 2002:a05:6e02:12a3:: with SMTP id f3mr29629951ilr.46.1629913820673; Wed, 25 Aug 2021 10:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629913820; cv=none; d=google.com; s=arc-20160816; b=PIjedJUVFW1CS5OC2t0VnAFCC0Q2BLHztcVzxTP8n07HF5rzRGuBGsrHCe73yLDc1g hHB1Ns2nt40ZxM/abRWxcXG1jW0wUPUHzda5f87kiBADX57GYH+I1TpxJHG/WNDYf9Vf LsCVmRvfbVmd3mAvHNCt0/EG6nOJKS4azM+Zk1f0sk6fdR7YvUfD86OHdMSN7ar+7G59 M0kjNgl63fN22nfqGWQelLaj+Z7Wgx2ZU2Od6GOYiVmeX2Oc9knKkBj2SwSZook5CS6n hkX+PvpD/Xv78u/e0BR2E4ZByoh5MzmKFCSfU3JEC9mqmEWRw9cCLONMDE4ac5LIK5Pw gQbw== 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=oN8MaQRWB2ARwAjkxsd31oxcs1o1bX4XvGF14YSFh0w=; b=U9M9GlEQFQtQ19ruI9aX70eseHZ51HSD/aOeMd9HEkuAxxazVSNWHpOfQWFBINDbcF m3y4Jwq5qPDrI+7qfwecYgj4Rw6OZCQGBa/Bka+GGVtkrZC5xPuZkBxlBUatsdh8fcYP kanyhBfsyP4yZHqmbC0ziS28tkYeayTIH3w/HGcQAALbZu/o8CcqCHLRpRqf/HNg9+NV bi9/zXcGAatVGdfkhItjZnnULj5dTJQuXRcK7Thky0wsT7PDG4JzNiHyt8S5Kf/3JEj4 jedlo53PGAM20UpOwBQ1HvUePFGamcSC0hEoLt5P0sGIPemGSz14wYOCfzJF5soEKypU iiXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b60si285888jai.29.2021.08.25.10.50.05; Wed, 25 Aug 2021 10:50:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242287AbhHYRtZ (ORCPT + 99 others); Wed, 25 Aug 2021 13:49:25 -0400 Received: from mail-oi1-f178.google.com ([209.85.167.178]:33465 "EHLO mail-oi1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231602AbhHYRtZ (ORCPT ); Wed, 25 Aug 2021 13:49:25 -0400 Received: by mail-oi1-f178.google.com with SMTP id n27so846754oij.0; Wed, 25 Aug 2021 10:48:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oN8MaQRWB2ARwAjkxsd31oxcs1o1bX4XvGF14YSFh0w=; b=QALozDpfqadJoEvRNQ3C/tMYLUC+5q5/nJaUc/9XtfGEVh94FVhiUS8fT1hCXCXp8f ZzARNY6ko/OKdLERcXdw3RBO0PfZbBlzGEKq/FoUr/khJxNFEt1E0FP+kZFt3AVYJvDk AxH2LKPEhE5IlyBjZrRYIUjCkXBWRnpx6eMQVxOPSZzQyNu1Qrsrc9H5/Is+M+ZrON9V BsS6zMNnLzaqhAQ8h5hrl8kxLphkB5dNZb1smV03Kjf0GmKXXBrT3SMyF39RA3qUnwxH 4A482cFOj6upnC9hPiSbxes1RLy7jS+R4dx1yPWlbFG8zx0DWEdXoGUs7PvXV6P25pkR l1Pw== X-Gm-Message-State: AOAM533pUBTsA98wSwSjc/YPqlowJ405deKQTqHP0cIRnolWhjeB2YHR 16gwwxabty1yD06SeLoWf5GvKQqk344YysDe+1c= X-Received: by 2002:aca:afcd:: with SMTP id y196mr7802452oie.71.1629913718705; Wed, 25 Aug 2021 10:48:38 -0700 (PDT) MIME-Version: 1.0 References: <20210824105651.28660-1-ionela.voinescu@arm.com> <20210824105651.28660-2-ionela.voinescu@arm.com> In-Reply-To: <20210824105651.28660-2-ionela.voinescu@arm.com> From: "Rafael J. Wysocki" Date: Wed, 25 Aug 2021 19:48:28 +0200 Message-ID: Subject: Re: [PATCH v2 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 , Linux Kernel Mailing List , ACPI Devel Maling List , Linux ARM Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 24, 2021 at 12:57 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 > --- > 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 9239399e5491..61d73013cab8 100644 > --- a/arch/x86/include/asm/topology.h > +++ b/arch/x86/include/asm/topology.h > @@ -220,7 +220,7 @@ static inline void arch_set_max_freq_ratio(bool turbo_disabled) > > #ifdef CONFIG_ACPI_CPPC_LIB > 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 a4d4eebba1da..c211d77310e8 100644 > --- a/drivers/acpi/cppc_acpi.c > +++ b/drivers/acpi/cppc_acpi.c > @@ -660,8 +660,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 > > /** > @@ -826,7 +826,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.29.2.dirty >