blob: f6b5f19223d6cb78efb3179f6dc0fd15383aeded [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
Thomas Gleixner09ec5442014-07-16 21:05:12 +000015# Clocksources require validation of the clocksource against the last
16# cycle update - x86/TSC misfeature
17config CLOCKSOURCE_VALIDATE_LAST_CYCLE
18 bool
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
Thomas Gleixnerb5e498a2012-05-18 09:59:57 +020024# Old style timekeeping
25config ARCH_USES_GETTIMEOFFSET
26 bool
27
28# The generic clock events infrastructure
29config GENERIC_CLOCKEVENTS
30 bool
31
Mark Rutland12ad1002013-01-14 17:05:22 +000032# Architecture can handle broadcast in a driver-agnostic way
33config ARCH_HAS_TICK_BROADCAST
34 bool
35
Thomas Gleixnerb5e498a2012-05-18 09:59:57 +020036# Clockevents broadcasting infrastructure
37config GENERIC_CLOCKEVENTS_BROADCAST
38 bool
39 depends on GENERIC_CLOCKEVENTS
40
Thomas Gleixner764e0da2012-05-21 23:16:18 +020041# Automatically adjust the min. reprogramming time for
42# clock event device
43config GENERIC_CLOCKEVENTS_MIN_ADJUST
44 bool
45
Thomas Gleixnerb5e498a2012-05-18 09:59:57 +020046# Generic update of CMOS clock
47config GENERIC_CMOS_UPDATE
48 bool
Thomas Gleixner764e0da2012-05-21 23:16:18 +020049
50if GENERIC_CLOCKEVENTS
51menu "Timers subsystem"
52
Frederic Weisbecker3451d022011-08-10 23:21:01 +020053# Core internal switch. Selected by NO_HZ_COMMON / HIGH_RES_TIMERS. This is
Thomas Gleixner764e0da2012-05-21 23:16:18 +020054# only related to the tick functionality. Oneshot clockevent devices
Randy Dunlap6082a6e2017-11-01 11:04:51 -070055# are supported independent of this.
Thomas Gleixner764e0da2012-05-21 23:16:18 +020056config TICK_ONESHOT
57 bool
58
Frederic Weisbecker3451d022011-08-10 23:21:01 +020059config NO_HZ_COMMON
60 bool
61 depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
62 select TICK_ONESHOT
63
Frederic Weisbecker3ca277e2011-08-10 23:21:01 +020064choice
65 prompt "Timer tick handling"
66 default NO_HZ_IDLE if NO_HZ
67
Frederic Weisbecker5b533f42013-04-13 16:53:35 +020068config HZ_PERIODIC
Frederic Weisbecker3ca277e2011-08-10 23:21:01 +020069 bool "Periodic timer ticks (constant rate, no dynticks)"
70 help
71 This option keeps the tick running periodically at a constant
72 rate, even when the CPU doesn't need it.
73
74config NO_HZ_IDLE
75 bool "Idle dynticks system (tickless idle)"
Thomas Gleixner764e0da2012-05-21 23:16:18 +020076 depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
Frederic Weisbecker3451d022011-08-10 23:21:01 +020077 select NO_HZ_COMMON
Thomas Gleixner764e0da2012-05-21 23:16:18 +020078 help
Frederic Weisbecker3ca277e2011-08-10 23:21:01 +020079 This option enables a tickless idle system: timer interrupts
80 will only trigger on an as-needed basis when the system is idle.
81 This is usually interesting for energy saving.
82
83 Most of the time you want to say Y here.
Thomas Gleixner764e0da2012-05-21 23:16:18 +020084
Frederic Weisbeckerc5bfece2013-04-12 16:45:34 +020085config NO_HZ_FULL
Frederic Weisbeckerfae30dd2013-04-13 17:04:04 +020086 bool "Full dynticks system (tickless)"
Frederic Weisbecker3451d022011-08-10 23:21:01 +020087 # NO_HZ_COMMON dependency
Frederic Weisbeckerab71d362011-08-10 23:21:01 +020088 depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
Frederic Weisbeckerfae30dd2013-04-13 17:04:04 +020089 # We need at least one periodic CPU for timekeeping
90 depends on SMP
Frederic Weisbeckerfae30dd2013-04-13 17:04:04 +020091 depends on HAVE_CONTEXT_TRACKING
Frederic Weisbeckerc58b0df2013-04-26 15:16:31 +020092 # VIRT_CPU_ACCOUNTING_GEN dependency
Kevin Hilman554b0002013-09-16 15:28:21 -070093 depends on HAVE_VIRT_CPU_ACCOUNTING_GEN
Frederic Weisbecker3451d022011-08-10 23:21:01 +020094 select NO_HZ_COMMON
Frederic Weisbeckerab71d362011-08-10 23:21:01 +020095 select RCU_NOCB_CPU
Frederic Weisbeckerc58b0df2013-04-26 15:16:31 +020096 select VIRT_CPU_ACCOUNTING_GEN
Frederic Weisbecker76c24fb2013-04-18 00:15:40 +020097 select IRQ_WORK
Paul E. McKenneybf29cb22017-12-14 19:18:25 +010098 select CPU_ISOLATION
Frederic Weisbeckerab71d362011-08-10 23:21:01 +020099 help
100 Adaptively try to shutdown the tick whenever possible, even when
Frederic Weisbeckera8318812012-12-18 17:32:19 +0100101 the CPU is running tasks. Typically this requires running a single
102 task on the CPU. Chances for running tickless are maximized when
103 the task mostly runs in userspace and has few kernel activity.
104
Frederic Weisbeckerc5bfece2013-04-12 16:45:34 +0200105 You need to fill up the nohz_full boot parameter with the
Frederic Weisbeckera8318812012-12-18 17:32:19 +0100106 desired range of dynticks CPUs.
107
108 This is implemented at the expense of some overhead in user <-> kernel
109 transitions: syscalls, exceptions and interrupts. Even when it's
110 dynamically off.
111
112 Say N.
113
Frederic Weisbecker3ca277e2011-08-10 23:21:01 +0200114endchoice
115
Frederic Weisbeckerf98823a2013-03-27 01:17:22 +0100116config NO_HZ_FULL_ALL
Paul Gortmakerf96a34e2014-02-06 13:36:21 -0500117 bool "Full dynticks system on all CPUs by default (except CPU 0)"
Frederic Weisbeckerf98823a2013-03-27 01:17:22 +0100118 depends on NO_HZ_FULL
119 help
120 If the user doesn't pass the nohz_full boot option to
121 define the range of full dynticks CPUs, consider that all
122 CPUs in the system are full dynticks by default.
123 Note the boot CPU will still be kept outside the range to
124 handle the timekeeping duty.
125
Frederic Weisbecker0644ca52013-04-12 16:40:12 +0200126config NO_HZ
127 bool "Old Idle dynticks config"
128 depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
129 help
130 This is the old config entry that enables dynticks idle.
131 We keep it around for a little while to enforce backward
132 compatibility with older config files.
133
Thomas Gleixner764e0da2012-05-21 23:16:18 +0200134config HIGH_RES_TIMERS
135 bool "High Resolution Timer Support"
136 depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
137 select TICK_ONESHOT
138 help
139 This option enables high resolution timer support. If your
140 hardware is not capable then this option only increases
141 the size of the kernel image.
142
143endmenu
144endif