blob: 99c3f13dd478e2214972e93cec812fd0896bda79 [file] [log] [blame]
Thomas Gleixner79bf2bb2007-02-16 01:28:03 -08001#
2# Timer subsystem related configuration options
3#
Thomas Gleixner3872c482012-03-31 12:45:43 +02004
Thomas Gleixnerb5e498a2012-05-18 09:59:57 +02005# Options selectable by arch Kconfig
6
7# Watchdog function for clocksources to detect instabilities
8config CLOCKSOURCE_WATCHDOG
9 bool
10
11# Architecture has extra clocksource data
12config ARCH_CLOCKSOURCE_DATA
13 bool
14
Feng Tang05ad7172013-01-16 00:09:49 +080015# Platforms has a persistent clock
John Stultz6f16eeb2013-01-25 17:08:12 -080016config ALWAYS_USE_PERSISTENT_CLOCK
Feng Tang05ad7172013-01-16 00:09:49 +080017 bool
18 default n
19
Thomas Gleixnerb5e498a2012-05-18 09:59:57 +020020# Timekeeping vsyscall support
John Stultz576094b2012-09-11 19:58:13 -040021config GENERIC_TIME_VSYSCALL
22 bool
23
24# Timekeeping vsyscall support
John Stultz70639422012-09-04 15:34:21 -040025config GENERIC_TIME_VSYSCALL_OLD
Thomas Gleixnerb5e498a2012-05-18 09:59:57 +020026 bool
27
28# ktime_t scalar 64bit nsec representation
29config KTIME_SCALAR
30 bool
31
32# Old style timekeeping
33config ARCH_USES_GETTIMEOFFSET
34 bool
35
36# The generic clock events infrastructure
37config GENERIC_CLOCKEVENTS
38 bool
39
Thomas Gleixner764e0da2012-05-21 23:16:18 +020040# Migration helper. Builds, but does not invoke
41config GENERIC_CLOCKEVENTS_BUILD
42 bool
43 default y
44 depends on GENERIC_CLOCKEVENTS
45
Mark Rutland12ad1002013-01-14 17:05:22 +000046# Architecture can handle broadcast in a driver-agnostic way
47config ARCH_HAS_TICK_BROADCAST
48 bool
49
Thomas Gleixnerb5e498a2012-05-18 09:59:57 +020050# Clockevents broadcasting infrastructure
51config GENERIC_CLOCKEVENTS_BROADCAST
52 bool
53 depends on GENERIC_CLOCKEVENTS
54
Thomas Gleixner764e0da2012-05-21 23:16:18 +020055# Automatically adjust the min. reprogramming time for
56# clock event device
57config GENERIC_CLOCKEVENTS_MIN_ADJUST
58 bool
59
Thomas Gleixnerb5e498a2012-05-18 09:59:57 +020060# Generic update of CMOS clock
61config GENERIC_CMOS_UPDATE
62 bool
Thomas Gleixner764e0da2012-05-21 23:16:18 +020063
64if GENERIC_CLOCKEVENTS
65menu "Timers subsystem"
66
Frederic Weisbecker3451d022011-08-10 23:21:01 +020067# Core internal switch. Selected by NO_HZ_COMMON / HIGH_RES_TIMERS. This is
Thomas Gleixner764e0da2012-05-21 23:16:18 +020068# only related to the tick functionality. Oneshot clockevent devices
69# are supported independ of this.
70config TICK_ONESHOT
71 bool
72
Frederic Weisbecker3451d022011-08-10 23:21:01 +020073config NO_HZ_COMMON
74 bool
75 depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
76 select TICK_ONESHOT
77
Frederic Weisbecker3ca277e2011-08-10 23:21:01 +020078choice
79 prompt "Timer tick handling"
80 default NO_HZ_IDLE if NO_HZ
81
Frederic Weisbecker5b533f42013-04-13 16:53:35 +020082config HZ_PERIODIC
Frederic Weisbecker3ca277e2011-08-10 23:21:01 +020083 bool "Periodic timer ticks (constant rate, no dynticks)"
84 help
85 This option keeps the tick running periodically at a constant
86 rate, even when the CPU doesn't need it.
87
88config NO_HZ_IDLE
89 bool "Idle dynticks system (tickless idle)"
Thomas Gleixner764e0da2012-05-21 23:16:18 +020090 depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
Frederic Weisbecker3451d022011-08-10 23:21:01 +020091 select NO_HZ_COMMON
Thomas Gleixner764e0da2012-05-21 23:16:18 +020092 help
Frederic Weisbecker3ca277e2011-08-10 23:21:01 +020093 This option enables a tickless idle system: timer interrupts
94 will only trigger on an as-needed basis when the system is idle.
95 This is usually interesting for energy saving.
96
97 Most of the time you want to say Y here.
Thomas Gleixner764e0da2012-05-21 23:16:18 +020098
Frederic Weisbeckerc5bfece2013-04-12 16:45:34 +020099config NO_HZ_FULL
Frederic Weisbeckerfae30dd2013-04-13 17:04:04 +0200100 bool "Full dynticks system (tickless)"
Frederic Weisbecker3451d022011-08-10 23:21:01 +0200101 # NO_HZ_COMMON dependency
Frederic Weisbeckerab71d362011-08-10 23:21:01 +0200102 depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
Frederic Weisbeckerfae30dd2013-04-13 17:04:04 +0200103 # We need at least one periodic CPU for timekeeping
104 depends on SMP
105 # RCU_USER_QS dependency
106 depends on HAVE_CONTEXT_TRACKING
Frederic Weisbeckerab71d362011-08-10 23:21:01 +0200107 # RCU_NOCB_CPU dependency
108 depends on TREE_RCU || TREE_PREEMPT_RCU
109 depends on VIRT_CPU_ACCOUNTING_GEN
Frederic Weisbecker3451d022011-08-10 23:21:01 +0200110 select NO_HZ_COMMON
Frederic Weisbeckerab71d362011-08-10 23:21:01 +0200111 select RCU_USER_QS
112 select RCU_NOCB_CPU
113 select CONTEXT_TRACKING_FORCE
114 help
115 Adaptively try to shutdown the tick whenever possible, even when
Frederic Weisbeckera8318812012-12-18 17:32:19 +0100116 the CPU is running tasks. Typically this requires running a single
117 task on the CPU. Chances for running tickless are maximized when
118 the task mostly runs in userspace and has few kernel activity.
119
Frederic Weisbeckerc5bfece2013-04-12 16:45:34 +0200120 You need to fill up the nohz_full boot parameter with the
Frederic Weisbeckera8318812012-12-18 17:32:19 +0100121 desired range of dynticks CPUs.
122
123 This is implemented at the expense of some overhead in user <-> kernel
124 transitions: syscalls, exceptions and interrupts. Even when it's
125 dynamically off.
126
127 Say N.
128
Frederic Weisbecker3ca277e2011-08-10 23:21:01 +0200129endchoice
130
Frederic Weisbeckerf98823a2013-03-27 01:17:22 +0100131config NO_HZ_FULL_ALL
132 bool "Full dynticks system on all CPUs by default"
133 depends on NO_HZ_FULL
134 help
135 If the user doesn't pass the nohz_full boot option to
136 define the range of full dynticks CPUs, consider that all
137 CPUs in the system are full dynticks by default.
138 Note the boot CPU will still be kept outside the range to
139 handle the timekeeping duty.
140
Frederic Weisbecker0644ca52013-04-12 16:40:12 +0200141config NO_HZ
142 bool "Old Idle dynticks config"
143 depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
144 help
145 This is the old config entry that enables dynticks idle.
146 We keep it around for a little while to enforce backward
147 compatibility with older config files.
148
Thomas Gleixner764e0da2012-05-21 23:16:18 +0200149config HIGH_RES_TIMERS
150 bool "High Resolution Timer Support"
151 depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
152 select TICK_ONESHOT
153 help
154 This option enables high resolution timer support. If your
155 hardware is not capable then this option only increases
156 the size of the kernel image.
157
158endmenu
159endif