Kconfig 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. menu "CPU Idle"
  3. config CPU_IDLE
  4. bool "CPU idle PM support"
  5. default y if ACPI || PPC_PSERIES
  6. select CPU_IDLE_GOV_LADDER if (!NO_HZ && !NO_HZ_IDLE)
  7. select CPU_IDLE_GOV_MENU if (NO_HZ || NO_HZ_IDLE) && !CPU_IDLE_GOV_TEO
  8. help
  9. CPU idle is a generic framework for supporting software-controlled
  10. idle processor power management. It includes modular cross-platform
  11. governors that can be swapped during runtime.
  12. If you're using an ACPI-enabled platform, you should say Y here.
  13. if CPU_IDLE
  14. config CPU_IDLE_MULTIPLE_DRIVERS
  15. bool
  16. config CPU_IDLE_GOV_LADDER
  17. bool "Ladder governor (for periodic timer tick)"
  18. config CPU_IDLE_GOV_MENU
  19. bool "Menu governor (for tickless system)"
  20. config CPU_IDLE_GOV_TEO
  21. bool "Timer events oriented (TEO) governor (for tickless systems)"
  22. help
  23. This governor implements a simplified idle state selection method
  24. focused on timer events and does not do any interactivity boosting.
  25. Some workloads benefit from using it and it generally should be safe
  26. to use. Say Y here if you are not happy with the alternatives.
  27. config CPU_IDLE_GOV_HALTPOLL
  28. bool "Haltpoll governor (for virtualized systems)"
  29. depends on KVM_GUEST
  30. help
  31. This governor implements haltpoll idle state selection, to be
  32. used in conjunction with the haltpoll cpuidle driver, allowing
  33. for polling for a certain amount of time before entering idle
  34. state.
  35. Some virtualized workloads benefit from using it.
  36. config DT_IDLE_STATES
  37. bool
  38. menu "ARM CPU Idle Drivers"
  39. depends on ARM || ARM64
  40. source "drivers/cpuidle/Kconfig.arm"
  41. endmenu
  42. menu "MIPS CPU Idle Drivers"
  43. depends on MIPS
  44. source "drivers/cpuidle/Kconfig.mips"
  45. endmenu
  46. menu "POWERPC CPU Idle Drivers"
  47. depends on PPC
  48. source "drivers/cpuidle/Kconfig.powerpc"
  49. endmenu
  50. menu "RISC-V CPU Idle Drivers"
  51. depends on RISCV
  52. source "drivers/cpuidle/Kconfig.riscv"
  53. endmenu
  54. config HALTPOLL_CPUIDLE
  55. tristate "Halt poll cpuidle driver"
  56. depends on X86 && KVM_GUEST
  57. default y
  58. help
  59. This option enables halt poll cpuidle driver, which allows to poll
  60. before halting in the guest (more efficient than polling in the
  61. host via halt_poll_ns for some scenarios).
  62. endif
  63. config ARCH_NEEDS_CPU_IDLE_COUPLED
  64. def_bool n
  65. endmenu