diff options
-rw-r--r-- | kernel/time/Kconfig | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/kernel/time/Kconfig b/kernel/time/Kconfig index c88fc43494c9..27cc404ea187 100644 --- a/kernel/time/Kconfig +++ b/kernel/time/Kconfig | |||
@@ -75,17 +75,33 @@ config NO_HZ_COMMON | |||
75 | depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS | 75 | depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS |
76 | select TICK_ONESHOT | 76 | select TICK_ONESHOT |
77 | 77 | ||
78 | # Kept around for compatibility, maps to NO_HZ_IDLE | ||
78 | config NO_HZ | 79 | config NO_HZ |
79 | bool "Tickless System (Dynamic Ticks)" | 80 | bool |
81 | |||
82 | choice | ||
83 | prompt "Timer tick handling" | ||
84 | default NO_HZ_IDLE if NO_HZ | ||
85 | |||
86 | config PERIODIC_HZ | ||
87 | bool "Periodic timer ticks (constant rate, no dynticks)" | ||
88 | help | ||
89 | This option keeps the tick running periodically at a constant | ||
90 | rate, even when the CPU doesn't need it. | ||
91 | |||
92 | config NO_HZ_IDLE | ||
93 | bool "Idle dynticks system (tickless idle)" | ||
80 | depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS | 94 | depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS |
81 | select NO_HZ_COMMON | 95 | select NO_HZ_COMMON |
82 | help | 96 | help |
83 | This option enables a tickless system: timer interrupts will | 97 | This option enables a tickless idle system: timer interrupts |
84 | only trigger on an as-needed basis both when the system is | 98 | will only trigger on an as-needed basis when the system is idle. |
85 | busy and when the system is idle. | 99 | This is usually interesting for energy saving. |
100 | |||
101 | Most of the time you want to say Y here. | ||
86 | 102 | ||
87 | config NO_HZ_EXTENDED | 103 | config NO_HZ_EXTENDED |
88 | bool "Full dynticks system" | 104 | bool "Full dynticks system (tickless single task)" |
89 | # NO_HZ_COMMON dependency | 105 | # NO_HZ_COMMON dependency |
90 | depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS | 106 | depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS |
91 | # RCU_USER_QS | 107 | # RCU_USER_QS |
@@ -112,6 +128,8 @@ config NO_HZ_EXTENDED | |||
112 | 128 | ||
113 | Say N. | 129 | Say N. |
114 | 130 | ||
131 | endchoice | ||
132 | |||
115 | config HIGH_RES_TIMERS | 133 | config HIGH_RES_TIMERS |
116 | bool "High Resolution Timer Support" | 134 | bool "High Resolution Timer Support" |
117 | depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS | 135 | depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS |