Kconfig 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. #
  2. # Timer subsystem related configuration options
  3. #
  4. # Options selectable by arch Kconfig
  5. # Watchdog function for clocksources to detect instabilities
  6. config CLOCKSOURCE_WATCHDOG
  7. bool
  8. # Architecture has extra clocksource data
  9. config ARCH_CLOCKSOURCE_DATA
  10. bool
  11. # Clocksources require validation of the clocksource against the last
  12. # cycle update - x86/TSC misfeature
  13. config CLOCKSOURCE_VALIDATE_LAST_CYCLE
  14. bool
  15. # Timekeeping vsyscall support
  16. config GENERIC_TIME_VSYSCALL
  17. bool
  18. # Old style timekeeping
  19. config ARCH_USES_GETTIMEOFFSET
  20. bool
  21. # The generic clock events infrastructure
  22. config GENERIC_CLOCKEVENTS
  23. bool
  24. # Architecture can handle broadcast in a driver-agnostic way
  25. config ARCH_HAS_TICK_BROADCAST
  26. bool
  27. # Clockevents broadcasting infrastructure
  28. config GENERIC_CLOCKEVENTS_BROADCAST
  29. bool
  30. depends on GENERIC_CLOCKEVENTS
  31. # Automatically adjust the min. reprogramming time for
  32. # clock event device
  33. config GENERIC_CLOCKEVENTS_MIN_ADJUST
  34. bool
  35. # Generic update of CMOS clock
  36. config GENERIC_CMOS_UPDATE
  37. bool
  38. if GENERIC_CLOCKEVENTS
  39. menu "Timers subsystem"
  40. # Core internal switch. Selected by NO_HZ_COMMON / HIGH_RES_TIMERS. This is
  41. # only related to the tick functionality. Oneshot clockevent devices
  42. # are supported independent of this.
  43. config TICK_ONESHOT
  44. bool
  45. config NO_HZ_COMMON
  46. bool
  47. depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
  48. select TICK_ONESHOT
  49. choice
  50. prompt "Timer tick handling"
  51. default NO_HZ_IDLE if NO_HZ
  52. config HZ_PERIODIC
  53. bool "Periodic timer ticks (constant rate, no dynticks)"
  54. help
  55. This option keeps the tick running periodically at a constant
  56. rate, even when the CPU doesn't need it.
  57. config NO_HZ_IDLE
  58. bool "Idle dynticks system (tickless idle)"
  59. depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
  60. select NO_HZ_COMMON
  61. help
  62. This option enables a tickless idle system: timer interrupts
  63. will only trigger on an as-needed basis when the system is idle.
  64. This is usually interesting for energy saving.
  65. Most of the time you want to say Y here.
  66. config NO_HZ_FULL
  67. bool "Full dynticks system (tickless)"
  68. # NO_HZ_COMMON dependency
  69. depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
  70. # We need at least one periodic CPU for timekeeping
  71. depends on SMP
  72. depends on HAVE_CONTEXT_TRACKING
  73. # VIRT_CPU_ACCOUNTING_GEN dependency
  74. depends on HAVE_VIRT_CPU_ACCOUNTING_GEN
  75. select NO_HZ_COMMON
  76. select RCU_NOCB_CPU
  77. select VIRT_CPU_ACCOUNTING_GEN
  78. select IRQ_WORK
  79. select CPU_ISOLATION
  80. help
  81. Adaptively try to shutdown the tick whenever possible, even when
  82. the CPU is running tasks. Typically this requires running a single
  83. task on the CPU. Chances for running tickless are maximized when
  84. the task mostly runs in userspace and has few kernel activity.
  85. You need to fill up the nohz_full boot parameter with the
  86. desired range of dynticks CPUs.
  87. This is implemented at the expense of some overhead in user <-> kernel
  88. transitions: syscalls, exceptions and interrupts. Even when it's
  89. dynamically off.
  90. Say N.
  91. endchoice
  92. config NO_HZ
  93. bool "Old Idle dynticks config"
  94. depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
  95. help
  96. This is the old config entry that enables dynticks idle.
  97. We keep it around for a little while to enforce backward
  98. compatibility with older config files.
  99. config HIGH_RES_TIMERS
  100. bool "High Resolution Timer Support"
  101. depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
  102. select TICK_ONESHOT
  103. help
  104. This option enables high resolution timer support. If your
  105. hardware is not capable then this option only increases
  106. the size of the kernel image.
  107. endmenu
  108. endif