1 # SPDX-License-Identifier: GPL-2.0-only
3 # Timer subsystem related configuration options
6 # Options selectable by arch Kconfig
8 # Watchdog function for clocksources to detect instabilities
9 config CLOCKSOURCE_WATCHDOG
12 # Architecture has extra clocksource data
13 config ARCH_CLOCKSOURCE_DATA
16 # Architecture has extra clocksource init called from registration
17 config ARCH_CLOCKSOURCE_INIT
20 # Clocksources require validation of the clocksource against the last
21 # cycle update - x86/TSC misfeature
22 config CLOCKSOURCE_VALIDATE_LAST_CYCLE
25 # Timekeeping vsyscall support
26 config GENERIC_TIME_VSYSCALL
29 # Old style timekeeping
30 config ARCH_USES_GETTIMEOFFSET
33 # The generic clock events infrastructure
34 config GENERIC_CLOCKEVENTS
37 # Architecture can handle broadcast in a driver-agnostic way
38 config ARCH_HAS_TICK_BROADCAST
41 # Clockevents broadcasting infrastructure
42 config GENERIC_CLOCKEVENTS_BROADCAST
44 depends on GENERIC_CLOCKEVENTS
46 # Automatically adjust the min. reprogramming time for
48 config GENERIC_CLOCKEVENTS_MIN_ADJUST
51 # Generic update of CMOS clock
52 config GENERIC_CMOS_UPDATE
55 if GENERIC_CLOCKEVENTS
56 menu "Timers subsystem"
58 # Core internal switch. Selected by NO_HZ_COMMON / HIGH_RES_TIMERS. This is
59 # only related to the tick functionality. Oneshot clockevent devices
60 # are supported independent of this.
66 depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
70 prompt "Timer tick handling"
71 default NO_HZ_IDLE if NO_HZ
74 bool "Periodic timer ticks (constant rate, no dynticks)"
76 This option keeps the tick running periodically at a constant
77 rate, even when the CPU doesn't need it.
80 bool "Idle dynticks system (tickless idle)"
81 depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
84 This option enables a tickless idle system: timer interrupts
85 will only trigger on an as-needed basis when the system is idle.
86 This is usually interesting for energy saving.
88 Most of the time you want to say Y here.
91 bool "Full dynticks system (tickless)"
92 # NO_HZ_COMMON dependency
93 depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
94 # We need at least one periodic CPU for timekeeping
96 depends on HAVE_CONTEXT_TRACKING
97 # VIRT_CPU_ACCOUNTING_GEN dependency
98 depends on HAVE_VIRT_CPU_ACCOUNTING_GEN
101 select VIRT_CPU_ACCOUNTING_GEN
105 Adaptively try to shutdown the tick whenever possible, even when
106 the CPU is running tasks. Typically this requires running a single
107 task on the CPU. Chances for running tickless are maximized when
108 the task mostly runs in userspace and has few kernel activity.
110 You need to fill up the nohz_full boot parameter with the
111 desired range of dynticks CPUs.
113 This is implemented at the expense of some overhead in user <-> kernel
114 transitions: syscalls, exceptions and interrupts. Even when it's
121 config CONTEXT_TRACKING
124 config CONTEXT_TRACKING_FORCE
125 bool "Force context tracking"
126 depends on CONTEXT_TRACKING
127 default y if !NO_HZ_FULL
129 The major pre-requirement for full dynticks to work is to
130 support the context tracking subsystem. But there are also
131 other dependencies to provide in order to make the full
134 This option stands for testing when an arch implements the
135 context tracking backend but doesn't yet fullfill all the
136 requirements to make the full dynticks feature working.
137 Without the full dynticks, there is no way to test the support
138 for context tracking and the subsystems that rely on it: RCU
139 userspace extended quiescent state and tickless cputime
140 accounting. This option copes with the absence of the full
141 dynticks subsystem by forcing the context tracking on all
144 Say Y only if you're working on the development of an
145 architecture backend for the context tracking.
147 Say N otherwise, this option brings an overhead that you
148 don't want in production.
151 bool "Old Idle dynticks config"
152 depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
154 This is the old config entry that enables dynticks idle.
155 We keep it around for a little while to enforce backward
156 compatibility with older config files.
158 config HIGH_RES_TIMERS
159 bool "High Resolution Timer Support"
160 depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
163 This option enables high resolution timer support. If your
164 hardware is not capable then this option only increases
165 the size of the kernel image.