Skip to content

Commit 9d3a068

Browse files
julianbraharafaeljw
authored andcommitted
cpuidle: clean up dead dependencies on CPU_IDLE in Kconfig
The Kconfig in the parent directory already has the first 'if CPU_IDLE' gating the inclusion of this Kconfig, meaning that the 'depends on CPUIDLE' statements in these config options are effectively dead code. Leave the 'if CPU_IDLE...endif' condition, and remove the individual 'depends on' statements in Kconfig.mips and Kconfig.powerpc This dead code was found by kconfirm, a static analysis tool for Kconfig. Signed-off-by: Julian Braha <julianbraha@gmail.com> [ rjw: Subject and changelog edits ] Link: https://patch.msgid.link/20260331074920.41269-1-julianbraha@gmail.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent f5b0097 commit 9d3a068

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

drivers/cpuidle/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ config HALTPOLL_CPUIDLE
8181
before halting in the guest (more efficient than polling in the
8282
host via halt_poll_ns for some scenarios).
8383

84-
endif
84+
endif # CPU_IDLE
8585

8686
config ARCH_NEEDS_CPU_IDLE_COUPLED
8787
def_bool n

drivers/cpuidle/Kconfig.mips

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
config MIPS_CPS_CPUIDLE
66
bool "CPU Idle driver for MIPS CPS platforms"
7-
depends on CPU_IDLE && MIPS_CPS
7+
depends on MIPS_CPS
88
depends on SYS_SUPPORTS_MIPS_CPS
99
select ARCH_NEEDS_CPU_IDLE_COUPLED if MIPS_MT || CPU_MIPSR6
1010
select GENERIC_CLOCKEVENTS_BROADCAST if SMP

drivers/cpuidle/Kconfig.powerpc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#
55
config PSERIES_CPUIDLE
66
bool "Cpuidle driver for pSeries platforms"
7-
depends on CPU_IDLE
87
depends on PPC_PSERIES
98
default y
109
help
@@ -13,7 +12,6 @@ config PSERIES_CPUIDLE
1312

1413
config POWERNV_CPUIDLE
1514
bool "Cpuidle driver for powernv platforms"
16-
depends on CPU_IDLE
1715
depends on PPC_POWERNV
1816
default y
1917
help

0 commit comments

Comments
 (0)