[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220713052931.hifhtonr7rkg3r2d@vireshk-i7>
Date: Wed, 13 Jul 2022 10:59:31 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: Perry Yuan <Perry.Yuan@....com>
Cc: rafael.j.wysocki@...el.com, Ray.Huang@....com,
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, Sudeep Holla <sudeep.holla@....com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>
Subject: Re: [PATCH v3 12/13] arch_topology: remove the acpi_disabled check
On 12-07-22, 11:43, Perry Yuan wrote:
> "acpi_cpc_valid" function already includes the acpi_disabled check and we can
> remove the duplicated check here
>
> 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),
Acked-by: Viresh Kumar <viresh.kumar@...aro.org>
--
viresh
Powered by blists - more mailing lists