hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/kernel/time/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 #
23 # Timer subsystem related configuration options
34 #
....@@ -10,6 +11,10 @@
1011
1112 # Architecture has extra clocksource data
1213 config ARCH_CLOCKSOURCE_DATA
14
+ bool
15
+
16
+# Architecture has extra clocksource init called from registration
17
+config ARCH_CLOCKSOURCE_INIT
1318 bool
1419
1520 # Clocksources require validation of the clocksource against the last
....@@ -46,6 +51,15 @@
4651 # Generic update of CMOS clock
4752 config GENERIC_CMOS_UPDATE
4853 bool
54
+
55
+# Select to handle posix CPU timers from task_work
56
+# and not from the timer interrupt context
57
+config HAVE_POSIX_CPU_TIMERS_TASK_WORK
58
+ bool
59
+
60
+config POSIX_CPU_TIMERS_TASK_WORK
61
+ bool
62
+ default y if POSIX_TIMERS && HAVE_POSIX_CPU_TIMERS_TASK_WORK
4963
5064 if GENERIC_CLOCKEVENTS
5165 menu "Timers subsystem"
....@@ -113,6 +127,35 @@
113127
114128 endchoice
115129
130
+config CONTEXT_TRACKING
131
+ bool
132
+
133
+config CONTEXT_TRACKING_FORCE
134
+ bool "Force context tracking"
135
+ depends on CONTEXT_TRACKING
136
+ default y if !NO_HZ_FULL
137
+ help
138
+ The major pre-requirement for full dynticks to work is to
139
+ support the context tracking subsystem. But there are also
140
+ other dependencies to provide in order to make the full
141
+ dynticks working.
142
+
143
+ This option stands for testing when an arch implements the
144
+ context tracking backend but doesn't yet fullfill all the
145
+ requirements to make the full dynticks feature working.
146
+ Without the full dynticks, there is no way to test the support
147
+ for context tracking and the subsystems that rely on it: RCU
148
+ userspace extended quiescent state and tickless cputime
149
+ accounting. This option copes with the absence of the full
150
+ dynticks subsystem by forcing the context tracking on all
151
+ CPUs in the system.
152
+
153
+ Say Y only if you're working on the development of an
154
+ architecture backend for the context tracking.
155
+
156
+ Say N otherwise, this option brings an overhead that you
157
+ don't want in production.
158
+
116159 config NO_HZ
117160 bool "Old Idle dynticks config"
118161 depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS