diff options
| author | Julian Braha <julianbraha@gmail.com> | 2026-08-01 17:01:40 +0100 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-08-11 15:37:23 +0200 |
| commit | b17006b45283f012a6e166517f5ca3e1af2f806a (patch) | |
| tree | a038525f6fa84dd99a719b23120103ba1d7aadeb /init | |
| parent | 2838bdb772e4e94591a90437bf595dba485a3162 (diff) | |
nohz: Replace dead select with choice default
'select' does not work on config options in a 'choice', so currently the
'select VIRT_CPU_ACCOUNTING_GEN' for NO_HZ_FULL is dead, with the choice
option VIRT_CPU_ACCOUNTING_GEN only being enabled when NO_HZ_FULL=y because
the other choice members depend on NO_HZ_FULL=n.
Remove the dead select, and encode this relationship as a default of the
choice, instead.
This dead select was found by kconfirm, a static analysis tool for Kconfig.
Signed-off-by: Julian Braha <julianbraha@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Reviewed-by: Bradley Morgan <include@grrlz.net>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Link: https://patch.msgid.link/20260801160140.2391000-1-julianbraha@gmail.com
Diffstat (limited to 'init')
| -rw-r--r-- | init/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig index 5230d4879b1c..523e41d48539 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -562,6 +562,7 @@ config VIRT_CPU_ACCOUNTING choice prompt "Cputime accounting" + default VIRT_CPU_ACCOUNTING_GEN if NO_HZ_FULL default TICK_CPU_ACCOUNTING # Kind of a stub config for the pure tick based cputime accounting |
