mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
cpufreq: clean up dead code in Kconfig
There is already an 'if CPU_FREQ' condition wrapping these config options, making the 'depends on' statement for each a duplicate dependency (dead code). Leave the outer 'if CPU_FREQ...endif' and remove the individual 'depends on' statement from each option. This dead code was found by kconfirm, a static analysis tool for Kconfig. Signed-off-by: Julian Braha <[email protected]> Acked-by: Viresh Kumar <[email protected]> [ rjw: Subject and changelog edits ] Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
1 parent
9266b4da05
commit
2e00c2dcc5
1 file changed
+2
-3
@@ -163,7 +163,6 @@ config CPU_FREQ_GOV_ONDEMAND
|
||||
|
||||
config CPU_FREQ_GOV_CONSERVATIVE
|
||||
tristate "'conservative' cpufreq governor"
|
||||
depends on CPU_FREQ
|
||||
select CPU_FREQ_GOV_COMMON
|
||||
help
|
||||
'conservative' - this driver is rather similar to the 'ondemand'
|
||||
@@ -188,7 +187,7 @@ config CPU_FREQ_GOV_CONSERVATIVE
|
||||
|
||||
config CPU_FREQ_GOV_SCHEDUTIL
|
||||
bool "'schedutil' cpufreq policy governor"
|
||||
depends on CPU_FREQ && SMP
|
||||
depends on SMP
|
||||
select CPU_FREQ_GOV_ATTR_SET
|
||||
select IRQ_WORK
|
||||
help
|
||||
@@ -365,6 +364,6 @@ config ACPI_CPPC_CPUFREQ_FIE
|
||||
|
||||
If in doubt, say N.
|
||||
|
||||
endif
|
||||
endif # CPU_FREQ
|
||||
|
||||
endmenu
|
||||
Reference in new issue
Block a user