Skip to content

Commit a4cffda

Browse files
Paul E. McKenneyKAGA-KOKO
authored andcommitted
time: Move CONTEXT_TRACKING to kernel/time/Kconfig
Both CONTEXT_TRACKING and CONTEXT_TRACKING_FORCE are currently defined in kernel/rcu/kconfig, which might have made sense at some point, but no longer does given that RCU refers to neither of these Kconfig options. Therefore move them to kernel/time/Kconfig, where the rest of the NO_HZ_FULL Kconfig options live. Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Frederic Weisbecker <fweisbec@gmail.com> Link: https://lkml.kernel.org/r/20181220170525.GA12579@linux.ibm.com
1 parent 1c7fc5c commit a4cffda

File tree

2 files changed

+29
-30
lines changed

2 files changed

+29
-30
lines changed

kernel/rcu/Kconfig

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -87,36 +87,6 @@ config RCU_STALL_COMMON
8787
config RCU_NEED_SEGCBLIST
8888
def_bool ( TREE_RCU || PREEMPT_RCU || TREE_SRCU )
8989

90-
config CONTEXT_TRACKING
91-
bool
92-
93-
config CONTEXT_TRACKING_FORCE
94-
bool "Force context tracking"
95-
depends on CONTEXT_TRACKING
96-
default y if !NO_HZ_FULL
97-
help
98-
The major pre-requirement for full dynticks to work is to
99-
support the context tracking subsystem. But there are also
100-
other dependencies to provide in order to make the full
101-
dynticks working.
102-
103-
This option stands for testing when an arch implements the
104-
context tracking backend but doesn't yet fullfill all the
105-
requirements to make the full dynticks feature working.
106-
Without the full dynticks, there is no way to test the support
107-
for context tracking and the subsystems that rely on it: RCU
108-
userspace extended quiescent state and tickless cputime
109-
accounting. This option copes with the absence of the full
110-
dynticks subsystem by forcing the context tracking on all
111-
CPUs in the system.
112-
113-
Say Y only if you're working on the development of an
114-
architecture backend for the context tracking.
115-
116-
Say N otherwise, this option brings an overhead that you
117-
don't want in production.
118-
119-
12090
config RCU_FANOUT
12191
int "Tree-based hierarchical RCU fanout value"
12292
range 2 64 if 64BIT

kernel/time/Kconfig

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,35 @@ config NO_HZ_FULL
117117

118118
endchoice
119119

120+
config CONTEXT_TRACKING
121+
bool
122+
123+
config CONTEXT_TRACKING_FORCE
124+
bool "Force context tracking"
125+
depends on CONTEXT_TRACKING
126+
default y if !NO_HZ_FULL
127+
help
128+
The major pre-requirement for full dynticks to work is to
129+
support the context tracking subsystem. But there are also
130+
other dependencies to provide in order to make the full
131+
dynticks working.
132+
133+
This option stands for testing when an arch implements the
134+
context tracking backend but doesn't yet fullfill all the
135+
requirements to make the full dynticks feature working.
136+
Without the full dynticks, there is no way to test the support
137+
for context tracking and the subsystems that rely on it: RCU
138+
userspace extended quiescent state and tickless cputime
139+
accounting. This option copes with the absence of the full
140+
dynticks subsystem by forcing the context tracking on all
141+
CPUs in the system.
142+
143+
Say Y only if you're working on the development of an
144+
architecture backend for the context tracking.
145+
146+
Say N otherwise, this option brings an overhead that you
147+
don't want in production.
148+
120149
config NO_HZ
121150
bool "Old Idle dynticks config"
122151
depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS

0 commit comments

Comments
 (0)