Kconfig 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. # Platforms has a persistent clock
  12. config ALWAYS_USE_PERSISTENT_CLOCK
  13. bool
  14. default n
  15. # Timekeeping vsyscall support
  16. config GENERIC_TIME_VSYSCALL
  17. bool
  18. # Timekeeping vsyscall support
  19. config GENERIC_TIME_VSYSCALL_OLD
  20. bool
  21. # ktime_t scalar 64bit nsec representation
  22. config KTIME_SCALAR
  23. bool
  24. # Old style timekeeping
  25. config ARCH_USES_GETTIMEOFFSET
  26. bool
  27. # The generic clock events infrastructure
  28. config GENERIC_CLOCKEVENTS
  29. bool
  30. # Migration helper. Builds, but does not invoke
  31. config GENERIC_CLOCKEVENTS_BUILD
  32. bool
  33. default y
  34. depends on GENERIC_CLOCKEVENTS
  35. # Architecture can handle broadcast in a driver-agnostic way
  36. config ARCH_HAS_TICK_BROADCAST
  37. bool
  38. # Clockevents broadcasting infrastructure
  39. config GENERIC_CLOCKEVENTS_BROADCAST
  40. bool
  41. depends on GENERIC_CLOCKEVENTS
  42. # Automatically adjust the min. reprogramming time for
  43. # clock event device
  44. config GENERIC_CLOCKEVENTS_MIN_ADJUST
  45. bool
  46. # Generic update of CMOS clock
  47. config GENERIC_CMOS_UPDATE
  48. bool
  49. if GENERIC_CLOCKEVENTS
  50. menu "Timers subsystem"
  51. # Core internal switch. Selected by NO_HZ_COMMON / HIGH_RES_TIMERS. This is
  52. # only related to the tick functionality. Oneshot clockevent devices
  53. # are supported independ of this.
  54. config TICK_ONESHOT
  55. bool
  56. config NO_HZ_COMMON
  57. bool
  58. depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
  59. select TICK_ONESHOT
  60. choice
  61. prompt "Timer tick handling"
  62. default NO_HZ_IDLE if NO_HZ
  63. config HZ_PERIODIC
  64. bool "Periodic timer ticks (constant rate, no dynticks)"
  65. help
  66. This option keeps the tick running periodically at a constant
  67. rate, even when the CPU doesn't need it.
  68. config NO_HZ_IDLE
  69. bool "Idle dynticks system (tickless idle)"
  70. depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
  71. select NO_HZ_COMMON
  72. help
  73. This option enables a tickless idle system: timer interrupts
  74. will only trigger on an as-needed basis when the system is idle.
  75. This is usually interesting for energy saving.
  76. Most of the time you want to say Y here.
  77. config NO_HZ_FULL
  78. bool "Full dynticks system (tickless)"
  79. # NO_HZ_COMMON dependency
  80. depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
  81. # We need at least one periodic CPU for timekeeping
  82. depends on SMP
  83. # RCU_USER_QS dependency
  84. depends on HAVE_CONTEXT_TRACKING
  85. # RCU_NOCB_CPU dependency
  86. depends on TREE_RCU || TREE_PREEMPT_RCU
  87. depends on VIRT_CPU_ACCOUNTING_GEN
  88. select NO_HZ_COMMON
  89. select RCU_USER_QS
  90. select RCU_NOCB_CPU
  91. select CONTEXT_TRACKING_FORCE
  92. help
  93. Adaptively try to shutdown the tick whenever possible, even when
  94. the CPU is running tasks. Typically this requires running a single
  95. task on the CPU. Chances for running tickless are maximized when
  96. the task mostly runs in userspace and has few kernel activity.
  97. You need to fill up the nohz_full boot parameter with the
  98. desired range of dynticks CPUs.
  99. This is implemented at the expense of some overhead in user <-> kernel
  100. transitions: syscalls, exceptions and interrupts. Even when it's
  101. dynamically off.
  102. Say N.
  103. endchoice
  104. config NO_HZ_FULL_ALL
  105. bool "Full dynticks system on all CPUs by default"
  106. depends on NO_HZ_FULL
  107. help
  108. If the user doesn't pass the nohz_full boot option to
  109. define the range of full dynticks CPUs, consider that all
  110. CPUs in the system are full dynticks by default.
  111. Note the boot CPU will still be kept outside the range to
  112. handle the timekeeping duty.
  113. config NO_HZ
  114. bool "Old Idle dynticks config"
  115. depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
  116. help
  117. This is the old config entry that enables dynticks idle.
  118. We keep it around for a little while to enforce backward
  119. compatibility with older config files.
  120. config HIGH_RES_TIMERS
  121. bool "High Resolution Timer Support"
  122. depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
  123. select TICK_ONESHOT
  124. help
  125. This option enables high resolution timer support. If your
  126. hardware is not capable then this option only increases
  127. the size of the kernel image.
  128. endmenu
  129. endif