Kconfig 4.0 KB

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