Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp504972pxj; Fri, 14 May 2021 08:40:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbpEEXUA+MvxtOwtLSlEQDpYBoljDNKGHDExyyt7dYt7SneBH03KmeEt150IXN+S7HbghE X-Received: by 2002:a17:906:9246:: with SMTP id c6mr50315097ejx.10.1621006823068; Fri, 14 May 2021 08:40:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621006823; cv=none; d=google.com; s=arc-20160816; b=XlCTLfsQjbq/P4Nt0MPdvzv+yjmN+COUuR3DswNx13NYQw5NpMc3OODJYB2uAIqMAm WBoscPZ3TPMKtw/StYNQgwKFn3lAyM/0a2jOdK5S24pqKuEsen7oymDZn078DhBPZhnB E1loOWI0PK24Q/C6cSEVkYOMM3GNfF+qZ2U/mElvXx0kG7t+ydJPLf0G0nD4XWWRmc3R f+NDvFU7d40qxzkVzAVStiV8uuymYHx5pHteqT1fM9fktk71dmAjgDrpiYkuBuOmDgCE bPtahEQ+Dva3QRRJty2Jq7a83CO3Pi1zP34galBjzlLmOPY5nWhvWK+blZgUIcRvvV8M +G4A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/i1wlekjMvx24z3TtDqLALST0EQ8KlyA7wuqCcBeF2A=; b=bQNAmkrbOutLbvibuuYozttCR3qDeDszSUr4jwV6D4LPE3cKPdGMaRu/KCSOvwHCji 6Z2U2SRtJgod0SIjgZz0W8xw6SggoSkTA4STg1RC+29vlWDNXsqkB4UhdL4fNaCD/nlb pgnRxWr+9CWzjvUpFbeUomjjGV6nBwmoUAmCo9kAcIKnm4WdXopI05AxSBKFqU84j7lm sQkuyBnKDxL6IEScYAQyI163uAQJZ3jtTfOxZI9a5+QO/CKR0kBGsw7s8Mmg9J/71F8e 2DBq95SsrQBm5ieU9sHZzAJPUHVtb7hiT6D+G1KQ9hnWC2BFeNJkf5q+9eVEgRwfeVDR Z5hQ== 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co9si6140371edb.403.2021.05.14.08.40.00; Fri, 14 May 2021 08:40:23 -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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232426AbhENJzh (ORCPT + 99 others); Fri, 14 May 2021 05:55:37 -0400 Received: from foss.arm.com ([217.140.110.172]:46120 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbhENJzg (ORCPT ); Fri, 14 May 2021 05:55:36 -0400 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 9AE391713; Fri, 14 May 2021 02:54:25 -0700 (PDT) Received: from e108754-lin.cambridge.arm.com (unknown [10.1.195.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 117FC3F719; Fri, 14 May 2021 02:54:23 -0700 (PDT) From: Ionela Voinescu To: Sudeep Holla , "Rafael J . Wysocki" , Thomas Gleixner , Ingo Molnar , Giovanni Gherdovich , Catalin Marinas , Will Deacon , Valentin Schneider Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/3] x86, ACPI: rename init_freq_invariance_cppc to arch_init_invariance_cppc Date: Fri, 14 May 2021 10:53:37 +0100 Message-Id: <20210514095339.12979-2-ionela.voinescu@arm.com> X-Mailer: git-send-email 2.29.2.dirty In-Reply-To: <20210514095339.12979-1-ionela.voinescu@arm.com> References: <20210514095339.12979-1-ionela.voinescu@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Giovanni Gherdovich Cc: "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