[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <84ed5051c2494f7ec25317b6857f27b8c6f1b6b4.1657876961.git.Perry.Yuan@amd.com>
Date: Fri, 15 Jul 2022 06:04:31 -0400
From: Perry Yuan <Perry.Yuan@....com>
To: <rafael.j.wysocki@...el.com>, <viresh.kumar@...aro.org>,
<Ray.Huang@....com>
CC: <Deepak.Sharma@....com>, <Mario.Limonciello@....com>,
<Nathan.Fontenot@....com>, <Alexander.Deucher@....com>,
<Jinzhou.Su@....com>, <Xinmei.Huang@....com>,
<Xiaojian.Du@....com>, <Li.Meng@....com>,
<linux-pm@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Perry Yuan <Perry.Yuan@....com>,
Sudeep Holla <sudeep.holla@....com>
Subject: [PATCH v4 12/13] arch_topology: remove the acpi_disabled check
"acpi_cpc_valid" function already includes the acpi_disabled check and we can
remove the duplicated check here
Acked-by: Viresh Kumar <viresh.kumar@...aro.org>
Acked-by: Sudeep Holla <sudeep.holla@....com>
Signed-off-by: Perry Yuan <Perry.Yuan@....com>
---
drivers/base/arch_topology.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c
index 579c851a2bd7..73a8cb31529d 100644
--- a/drivers/base/arch_topology.c
+++ b/drivers/base/arch_topology.c
@@ -352,7 +352,7 @@ void topology_init_cpu_capacity_cppc(void)
struct cppc_perf_caps perf_caps;
int cpu;
- if (likely(acpi_disabled || !acpi_cpc_valid()))
+ if (likely(!acpi_cpc_valid()))
return;
raw_capacity = kcalloc(num_possible_cpus(), sizeof(*raw_capacity),
--
2.32.0
Powered by blists - more mailing lists