Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Sahara | b98e01a | 2013-07-03 17:49:55 +0900 | [diff] [blame] | 2 | menu "CPU Idle" |
Len Brown | 4f86d3a | 2007-10-03 18:58:00 -0400 | [diff] [blame] | 3 | |
Sahara | b98e01a | 2013-07-03 17:49:55 +0900 | [diff] [blame] | 4 | config CPU_IDLE |
Len Brown | 4f86d3a | 2007-10-03 18:58:00 -0400 | [diff] [blame] | 5 | bool "CPU idle PM support" |
Benjamin Herrenschmidt | aa491ad | 2012-02-22 16:04:24 +1100 | [diff] [blame] | 6 | default y if ACPI || PPC_PSERIES |
Daniel Lezcano | d6f346f | 2013-05-28 15:51:54 +0000 | [diff] [blame] | 7 | select CPU_IDLE_GOV_LADDER if (!NO_HZ && !NO_HZ_IDLE) |
Rafael J. Wysocki | b26bf6a | 2019-01-04 12:30:47 +0100 | [diff] [blame] | 8 | select CPU_IDLE_GOV_MENU if (NO_HZ || NO_HZ_IDLE) && !CPU_IDLE_GOV_TEO |
Len Brown | 4f86d3a | 2007-10-03 18:58:00 -0400 | [diff] [blame] | 9 | help |
| 10 | CPU idle is a generic framework for supporting software-controlled |
| 11 | idle processor power management. It includes modular cross-platform |
| 12 | governors that can be swapped during runtime. |
| 13 | |
len.brown@intel.com | 60555e3 | 2007-11-19 22:22:37 -0500 | [diff] [blame] | 14 | If you're using an ACPI-enabled platform, you should say Y here. |
Len Brown | 4f86d3a | 2007-10-03 18:58:00 -0400 | [diff] [blame] | 15 | |
Daniel Lezcano | d6f346f | 2013-05-28 15:51:54 +0000 | [diff] [blame] | 16 | if CPU_IDLE |
| 17 | |
Daniel Lezcano | bf4d1b5 | 2012-10-31 16:44:48 +0000 | [diff] [blame] | 18 | config CPU_IDLE_MULTIPLE_DRIVERS |
Krzysztof Kozlowski | 656b4e6 | 2019-11-21 04:19:12 +0100 | [diff] [blame] | 19 | bool |
Daniel Lezcano | bf4d1b5 | 2012-10-31 16:44:48 +0000 | [diff] [blame] | 20 | |
Len Brown | 4f86d3a | 2007-10-03 18:58:00 -0400 | [diff] [blame] | 21 | config CPU_IDLE_GOV_LADDER |
Daniel Lezcano | d6f346f | 2013-05-28 15:51:54 +0000 | [diff] [blame] | 22 | bool "Ladder governor (for periodic timer tick)" |
Len Brown | 4f86d3a | 2007-10-03 18:58:00 -0400 | [diff] [blame] | 23 | |
| 24 | config CPU_IDLE_GOV_MENU |
Daniel Lezcano | d6f346f | 2013-05-28 15:51:54 +0000 | [diff] [blame] | 25 | bool "Menu governor (for tickless system)" |
Colin Cross | 4126c01 | 2012-05-07 17:57:41 -0700 | [diff] [blame] | 26 | |
Rafael J. Wysocki | b26bf6a | 2019-01-04 12:30:47 +0100 | [diff] [blame] | 27 | config CPU_IDLE_GOV_TEO |
| 28 | bool "Timer events oriented (TEO) governor (for tickless systems)" |
| 29 | help |
| 30 | This governor implements a simplified idle state selection method |
| 31 | focused on timer events and does not do any interactivity boosting. |
| 32 | |
| 33 | Some workloads benefit from using it and it generally should be safe |
| 34 | to use. Say Y here if you are not happy with the alternatives. |
| 35 | |
Marcelo Tosatti | 2cffe9f | 2019-07-03 20:51:28 -0300 | [diff] [blame] | 36 | config CPU_IDLE_GOV_HALTPOLL |
| 37 | bool "Haltpoll governor (for virtualized systems)" |
| 38 | depends on KVM_GUEST |
| 39 | help |
| 40 | This governor implements haltpoll idle state selection, to be |
| 41 | used in conjunction with the haltpoll cpuidle driver, allowing |
| 42 | for polling for a certain amount of time before entering idle |
| 43 | state. |
| 44 | |
| 45 | Some virtualized workloads benefit from using it. |
| 46 | |
Lorenzo Pieralisi | 9f14da3 | 2014-02-14 14:28:39 +0000 | [diff] [blame] | 47 | config DT_IDLE_STATES |
| 48 | bool |
| 49 | |
Sahara | b98e01a | 2013-07-03 17:49:55 +0900 | [diff] [blame] | 50 | menu "ARM CPU Idle Drivers" |
Daniel Lezcano | 0e08704 | 2015-02-02 16:32:46 +0100 | [diff] [blame] | 51 | depends on ARM || ARM64 |
Sahara | b98e01a | 2013-07-03 17:49:55 +0900 | [diff] [blame] | 52 | source "drivers/cpuidle/Kconfig.arm" |
| 53 | endmenu |
Michal Simek | bd2a337 | 2013-06-04 07:17:39 +0000 | [diff] [blame] | 54 | |
Paul Burton | d050894 | 2014-04-14 16:25:29 +0100 | [diff] [blame] | 55 | menu "MIPS CPU Idle Drivers" |
| 56 | depends on MIPS |
| 57 | source "drivers/cpuidle/Kconfig.mips" |
| 58 | endmenu |
| 59 | |
Deepthi Dharwar | 962e7bd | 2014-01-14 16:26:02 +0530 | [diff] [blame] | 60 | menu "POWERPC CPU Idle Drivers" |
| 61 | depends on PPC |
| 62 | source "drivers/cpuidle/Kconfig.powerpc" |
| 63 | endmenu |
| 64 | |
Marcelo Tosatti | fa86ee9 | 2019-07-03 20:51:25 -0300 | [diff] [blame] | 65 | config HALTPOLL_CPUIDLE |
Krzysztof Kozlowski | 656b4e6 | 2019-11-21 04:19:12 +0100 | [diff] [blame] | 66 | tristate "Halt poll cpuidle driver" |
| 67 | depends on X86 && KVM_GUEST |
| 68 | default y |
| 69 | help |
| 70 | This option enables halt poll cpuidle driver, which allows to poll |
| 71 | before halting in the guest (more efficient than polling in the |
| 72 | host via halt_poll_ns for some scenarios). |
Marcelo Tosatti | fa86ee9 | 2019-07-03 20:51:25 -0300 | [diff] [blame] | 73 | |
Rob Herring | be6a98d | 2012-10-12 12:45:34 -0500 | [diff] [blame] | 74 | endif |
Daniel Lezcano | b39b098 | 2013-06-11 08:09:45 +0000 | [diff] [blame] | 75 | |
| 76 | config ARCH_NEEDS_CPU_IDLE_COUPLED |
| 77 | def_bool n |
Sahara | b98e01a | 2013-07-03 17:49:55 +0900 | [diff] [blame] | 78 | endmenu |