public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mario Limonciello <superm1@kernel.org>
To: Julian Braha <julianbraha@gmail.com>,
	rafael@kernel.org, viresh.kumar@linaro.org
Cc: gautham.shenoy@amd.com, Perry.Yuan@amd.com,
	skhan@linuxfoundation.org, ray.huang@amd.com,
	linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] cpufreq: clean up dead dependencies on X86 in Kconfig
Date: Sat, 18 Apr 2026 23:09:18 -0500	[thread overview]
Message-ID: <c135b5b8-90d8-43ca-9017-96fcffd747c2@kernel.org> (raw)
In-Reply-To: <20260417230652.305414-1-julianbraha@gmail.com>

On 4/17/26 18:06, Julian Braha wrote:
> The Kconfig in the parent directory already has an 'if X86'
> condition wrapping the inclusion of this file, meaning that each of the
> individual 'depends on' statements in this file is a duplicate dependency
> (dead code).
> 
> I propose leaving the outer 'if X86...endif' and removing
> the individual 'depends on X86' statement from each option.
> 
> This dead code was found by kconfirm, a static analysis tool for Kconfig.
> 
> Signed-off-by: Julian Braha <julianbraha@gmail.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
> ---
>   drivers/cpufreq/Kconfig.x86 | 5 ++---
>   1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/cpufreq/Kconfig.x86 b/drivers/cpufreq/Kconfig.x86
> index 027e6ea2e038..9afceb1143df 100644
> --- a/drivers/cpufreq/Kconfig.x86
> +++ b/drivers/cpufreq/Kconfig.x86
> @@ -5,7 +5,6 @@
>   
>   config X86_INTEL_PSTATE
>   	bool "Intel P state control"
> -	depends on X86
>   	select ACPI_PROCESSOR if ACPI
>   	select ACPI_CPPC_LIB if X86_64 && ACPI && SCHED_MC_PRIO
>   	select CPU_FREQ_GOV_PERFORMANCE
> @@ -36,7 +35,7 @@ config X86_PCC_CPUFREQ
>   
>   config X86_AMD_PSTATE
>   	bool "AMD Processor P-State driver"
> -	depends on X86 && ACPI
> +	depends on ACPI
>   	select ACPI_PROCESSOR
>   	select ACPI_CPPC_LIB if X86_64
>   	select CPU_FREQ_GOV_SCHEDUTIL if SMP
> @@ -84,7 +83,7 @@ config X86_AMD_PSTATE_DYNAMIC_EPP
>   
>   config X86_AMD_PSTATE_UT
>   	tristate "selftest for AMD Processor P-State driver"
> -	depends on X86 && ACPI_PROCESSOR
> +	depends on ACPI_PROCESSOR
>   	depends on X86_AMD_PSTATE
>   	default n
>   	help


      reply	other threads:[~2026-04-19  4:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-17 23:06 [PATCH] cpufreq: clean up dead dependencies on X86 in Kconfig Julian Braha
2026-04-19  4:09 ` Mario Limonciello [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c135b5b8-90d8-43ca-9017-96fcffd747c2@kernel.org \
    --to=superm1@kernel.org \
    --cc=Perry.Yuan@amd.com \
    --cc=gautham.shenoy@amd.com \
    --cc=julianbraha@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=ray.huang@amd.com \
    --cc=skhan@linuxfoundation.org \
    --cc=viresh.kumar@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox