Thomas Gleixner | 79bf2bb | 2007-02-16 01:28:03 -0800 | [diff] [blame] | 1 | # |
| 2 | # Timer subsystem related configuration options |
| 3 | # |
Thomas Gleixner | 3872c48 | 2012-03-31 12:45:43 +0200 | [diff] [blame] | 4 | |
Thomas Gleixner | b5e498a | 2012-05-18 09:59:57 +0200 | [diff] [blame] | 5 | # Options selectable by arch Kconfig |
| 6 | |
| 7 | # Watchdog function for clocksources to detect instabilities |
| 8 | config CLOCKSOURCE_WATCHDOG |
| 9 | bool |
| 10 | |
| 11 | # Architecture has extra clocksource data |
| 12 | config ARCH_CLOCKSOURCE_DATA |
| 13 | bool |
| 14 | |
Feng Tang | 05ad717 | 2013-01-16 00:09:49 +0800 | [diff] [blame] | 15 | # Platforms has a persistent clock |
John Stultz | 6f16eeb | 2013-01-25 17:08:12 -0800 | [diff] [blame] | 16 | config ALWAYS_USE_PERSISTENT_CLOCK |
Feng Tang | 05ad717 | 2013-01-16 00:09:49 +0800 | [diff] [blame] | 17 | bool |
| 18 | default n |
| 19 | |
Thomas Gleixner | b5e498a | 2012-05-18 09:59:57 +0200 | [diff] [blame] | 20 | # Timekeeping vsyscall support |
John Stultz | 576094b | 2012-09-11 19:58:13 -0400 | [diff] [blame] | 21 | config GENERIC_TIME_VSYSCALL |
| 22 | bool |
| 23 | |
| 24 | # Timekeeping vsyscall support |
John Stultz | 7063942 | 2012-09-04 15:34:21 -0400 | [diff] [blame] | 25 | config GENERIC_TIME_VSYSCALL_OLD |
Thomas Gleixner | b5e498a | 2012-05-18 09:59:57 +0200 | [diff] [blame] | 26 | bool |
| 27 | |
| 28 | # ktime_t scalar 64bit nsec representation |
| 29 | config KTIME_SCALAR |
| 30 | bool |
| 31 | |
| 32 | # Old style timekeeping |
| 33 | config ARCH_USES_GETTIMEOFFSET |
| 34 | bool |
| 35 | |
| 36 | # The generic clock events infrastructure |
| 37 | config GENERIC_CLOCKEVENTS |
| 38 | bool |
| 39 | |
Thomas Gleixner | 764e0da | 2012-05-21 23:16:18 +0200 | [diff] [blame] | 40 | # Migration helper. Builds, but does not invoke |
| 41 | config GENERIC_CLOCKEVENTS_BUILD |
| 42 | bool |
| 43 | default y |
| 44 | depends on GENERIC_CLOCKEVENTS |
| 45 | |
Mark Rutland | 12ad100 | 2013-01-14 17:05:22 +0000 | [diff] [blame] | 46 | # Architecture can handle broadcast in a driver-agnostic way |
| 47 | config ARCH_HAS_TICK_BROADCAST |
| 48 | bool |
| 49 | |
Thomas Gleixner | b5e498a | 2012-05-18 09:59:57 +0200 | [diff] [blame] | 50 | # Clockevents broadcasting infrastructure |
| 51 | config GENERIC_CLOCKEVENTS_BROADCAST |
| 52 | bool |
| 53 | depends on GENERIC_CLOCKEVENTS |
| 54 | |
Thomas Gleixner | 764e0da | 2012-05-21 23:16:18 +0200 | [diff] [blame] | 55 | # Automatically adjust the min. reprogramming time for |
| 56 | # clock event device |
| 57 | config GENERIC_CLOCKEVENTS_MIN_ADJUST |
| 58 | bool |
| 59 | |
Thomas Gleixner | b5e498a | 2012-05-18 09:59:57 +0200 | [diff] [blame] | 60 | # Generic update of CMOS clock |
| 61 | config GENERIC_CMOS_UPDATE |
| 62 | bool |
Thomas Gleixner | 764e0da | 2012-05-21 23:16:18 +0200 | [diff] [blame] | 63 | |
| 64 | if GENERIC_CLOCKEVENTS |
| 65 | menu "Timers subsystem" |
| 66 | |
Frederic Weisbecker | 3451d02 | 2011-08-10 23:21:01 +0200 | [diff] [blame] | 67 | # Core internal switch. Selected by NO_HZ_COMMON / HIGH_RES_TIMERS. This is |
Thomas Gleixner | 764e0da | 2012-05-21 23:16:18 +0200 | [diff] [blame] | 68 | # only related to the tick functionality. Oneshot clockevent devices |
| 69 | # are supported independ of this. |
| 70 | config TICK_ONESHOT |
| 71 | bool |
| 72 | |
Frederic Weisbecker | 3451d02 | 2011-08-10 23:21:01 +0200 | [diff] [blame] | 73 | config NO_HZ_COMMON |
| 74 | bool |
| 75 | depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS |
| 76 | select TICK_ONESHOT |
| 77 | |
Frederic Weisbecker | 3ca277e | 2011-08-10 23:21:01 +0200 | [diff] [blame] | 78 | choice |
| 79 | prompt "Timer tick handling" |
| 80 | default NO_HZ_IDLE if NO_HZ |
| 81 | |
| 82 | config PERIODIC_HZ |
| 83 | 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 | |
| 88 | config NO_HZ_IDLE |
| 89 | bool "Idle dynticks system (tickless idle)" |
Thomas Gleixner | 764e0da | 2012-05-21 23:16:18 +0200 | [diff] [blame] | 90 | depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS |
Frederic Weisbecker | 3451d02 | 2011-08-10 23:21:01 +0200 | [diff] [blame] | 91 | select NO_HZ_COMMON |
Thomas Gleixner | 764e0da | 2012-05-21 23:16:18 +0200 | [diff] [blame] | 92 | help |
Frederic Weisbecker | 3ca277e | 2011-08-10 23:21:01 +0200 | [diff] [blame] | 93 | 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 Gleixner | 764e0da | 2012-05-21 23:16:18 +0200 | [diff] [blame] | 98 | |
Frederic Weisbecker | c5bfece | 2013-04-12 16:45:34 +0200 | [diff] [blame^] | 99 | config NO_HZ_FULL |
Frederic Weisbecker | 3ca277e | 2011-08-10 23:21:01 +0200 | [diff] [blame] | 100 | bool "Full dynticks system (tickless single task)" |
Frederic Weisbecker | 3451d02 | 2011-08-10 23:21:01 +0200 | [diff] [blame] | 101 | # NO_HZ_COMMON dependency |
Frederic Weisbecker | ab71d36 | 2011-08-10 23:21:01 +0200 | [diff] [blame] | 102 | depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS |
| 103 | # RCU_USER_QS |
| 104 | depends on HAVE_CONTEXT_TRACKING && SMP |
| 105 | # RCU_NOCB_CPU dependency |
| 106 | depends on TREE_RCU || TREE_PREEMPT_RCU |
| 107 | depends on VIRT_CPU_ACCOUNTING_GEN |
Frederic Weisbecker | 3451d02 | 2011-08-10 23:21:01 +0200 | [diff] [blame] | 108 | select NO_HZ_COMMON |
Frederic Weisbecker | ab71d36 | 2011-08-10 23:21:01 +0200 | [diff] [blame] | 109 | select RCU_USER_QS |
| 110 | select RCU_NOCB_CPU |
| 111 | select CONTEXT_TRACKING_FORCE |
| 112 | help |
| 113 | Adaptively try to shutdown the tick whenever possible, even when |
Frederic Weisbecker | a831881 | 2012-12-18 17:32:19 +0100 | [diff] [blame] | 114 | the CPU is running tasks. Typically this requires running a single |
| 115 | task on the CPU. Chances for running tickless are maximized when |
| 116 | the task mostly runs in userspace and has few kernel activity. |
| 117 | |
Frederic Weisbecker | c5bfece | 2013-04-12 16:45:34 +0200 | [diff] [blame^] | 118 | You need to fill up the nohz_full boot parameter with the |
Frederic Weisbecker | a831881 | 2012-12-18 17:32:19 +0100 | [diff] [blame] | 119 | desired range of dynticks CPUs. |
| 120 | |
| 121 | This is implemented at the expense of some overhead in user <-> kernel |
| 122 | transitions: syscalls, exceptions and interrupts. Even when it's |
| 123 | dynamically off. |
| 124 | |
| 125 | Say N. |
| 126 | |
Frederic Weisbecker | 3ca277e | 2011-08-10 23:21:01 +0200 | [diff] [blame] | 127 | endchoice |
| 128 | |
Frederic Weisbecker | 0644ca5 | 2013-04-12 16:40:12 +0200 | [diff] [blame] | 129 | config NO_HZ |
| 130 | bool "Old Idle dynticks config" |
| 131 | depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS |
| 132 | help |
| 133 | This is the old config entry that enables dynticks idle. |
| 134 | We keep it around for a little while to enforce backward |
| 135 | compatibility with older config files. |
| 136 | |
Thomas Gleixner | 764e0da | 2012-05-21 23:16:18 +0200 | [diff] [blame] | 137 | config HIGH_RES_TIMERS |
| 138 | bool "High Resolution Timer Support" |
| 139 | depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS |
| 140 | select TICK_ONESHOT |
| 141 | help |
| 142 | This option enables high resolution timer support. If your |
| 143 | hardware is not capable then this option only increases |
| 144 | the size of the kernel image. |
| 145 | |
| 146 | endmenu |
| 147 | endif |