Moving the CONTEXT_TRACKING Kconfig option into kernel/time/Kconfig added an implicit dependency on the surrounding GENERIC_CLOCKEVENTS option, but this is not always enabled when it is possible to select VIRT_CPU_ACCOUNTING_GEN: WARNING: unmet direct dependencies detected for CONTEXT_TRACKING Depends on [n]: GENERIC_CLOCKEVENTS [=n] Selected by [y]: - VIRT_CPU_ACCOUNTING_GEN [=y] && <choice> && HAVE_CONTEXT_TRACKING [=y] && HAVE_VIRT_CPU_ACCOUNTING_GEN [=y] Platforms without GENERIC_CLOCKEVENTS are rare enough so that corner case can be just ignored. Make it a dependency for VIRT_CPU_ACCOUNTING_GEN to simplify the configuration.
Unified · Split
| @@ -382,6 +382,7 @@ config VIRT_CPU_ACCOUNTING_GEN · 381 unmodified lines | ||
| 382 | 382 | bool "Full dynticks CPU time accounting" |
| 383 | 383 | depends on HAVE_CONTEXT_TRACKING |
| 384 | 384 | depends on HAVE_VIRT_CPU_ACCOUNTING_GEN |
| 385 | + depends on GENERIC_CLOCKEVENTS | |
| 385 | 386 | select VIRT_CPU_ACCOUNTING |
| 386 | 387 | select CONTEXT_TRACKING |
| 387 | 388 | help |