]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cpuidle: clean up dead dependencies on CPU_IDLE in Kconfig
authorJulian Braha <julianbraha@gmail.com>
Tue, 31 Mar 2026 07:49:20 +0000 (08:49 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 1 Apr 2026 14:01:27 +0000 (16:01 +0200)
commit9d3a068cc80c9ed374cb78ab8c861668c835a6bc
tree724e42d75d3d1232263884c98d8cfa35180f903d
parentf5b00975249bd30e3ab34b22b5f8a92675892044
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>
drivers/cpuidle/Kconfig
drivers/cpuidle/Kconfig.mips
drivers/cpuidle/Kconfig.powerpc