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 | |
| 67 | # Core internal switch. Selected by NO_HZ / HIGH_RES_TIMERS. This is |
| 68 | # only related to the tick functionality. Oneshot clockevent devices |
| 69 | # are supported independ of this. |
| 70 | config TICK_ONESHOT |
| 71 | bool |
| 72 | |
| 73 | config NO_HZ |
| 74 | bool "Tickless System (Dynamic Ticks)" |
| 75 | depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS |
| 76 | select TICK_ONESHOT |
| 77 | help |
| 78 | This option enables a tickless system: timer interrupts will |
| 79 | only trigger on an as-needed basis both when the system is |
| 80 | busy and when the system is idle. |
| 81 | |
| 82 | config HIGH_RES_TIMERS |
| 83 | bool "High Resolution Timer Support" |
| 84 | depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS |
| 85 | select TICK_ONESHOT |
| 86 | help |
| 87 | This option enables high resolution timer support. If your |
| 88 | hardware is not capable then this option only increases |
| 89 | the size of the kernel image. |
| 90 | |
| 91 | endmenu |
| 92 | endif |