Dave Jones | bb0a56e | 2011-05-19 18:51:07 -0400 | [diff] [blame] | 1 | menu "CPU Frequency scaling" |
| 2 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | config CPU_FREQ |
| 4 | bool "CPU Frequency scaling" |
| 5 | help |
| 6 | CPU Frequency scaling allows you to change the clock speed of |
| 7 | CPUs on the fly. This is a nice method to save power, because |
| 8 | the lower the CPU clock speed, the less power the CPU consumes. |
| 9 | |
| 10 | Note that this driver doesn't automatically change the CPU |
| 11 | clock speed, you need to either enable a dynamic cpufreq governor |
| 12 | (see below) after boot, or use a userspace tool. |
| 13 | |
| 14 | For details, take a look at <file:Documentation/cpu-freq>. |
| 15 | |
| 16 | If in doubt, say N. |
| 17 | |
| 18 | if CPU_FREQ |
| 19 | |
Larry Finger | 1e15f29 | 2012-12-29 01:55:20 +0000 | [diff] [blame] | 20 | config CPU_FREQ_GOV_COMMON |
| 21 | bool |
| 22 | |
Lukasz Majewski | 2fb4719 | 2013-12-20 15:24:51 +0100 | [diff] [blame] | 23 | config CPU_FREQ_BOOST_SW |
| 24 | bool |
| 25 | depends on THERMAL |
| 26 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | config CPU_FREQ_STAT |
Mike Frysinger | 9101be5 | 2007-04-18 16:18:13 -0400 | [diff] [blame] | 28 | tristate "CPU frequency translation statistics" |
Mike Frysinger | 9101be5 | 2007-04-18 16:18:13 -0400 | [diff] [blame] | 29 | default y |
| 30 | help |
| 31 | This driver exports CPU frequency statistics information through sysfs |
| 32 | file system. |
| 33 | |
| 34 | To compile this driver as a module, choose M here: the |
| 35 | module will be called cpufreq_stats. |
| 36 | |
| 37 | If in doubt, say N. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | |
| 39 | config CPU_FREQ_STAT_DETAILS |
Mike Frysinger | 9101be5 | 2007-04-18 16:18:13 -0400 | [diff] [blame] | 40 | bool "CPU frequency translation statistics details" |
| 41 | depends on CPU_FREQ_STAT |
| 42 | help |
| 43 | This will show detail CPU frequency translation table in sysfs file |
| 44 | system. |
| 45 | |
| 46 | If in doubt, say N. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 48 | choice |
| 49 | prompt "Default CPUFreq governor" |
Alexander Shiyan | 559f56c | 2013-05-05 12:18:08 +0000 | [diff] [blame] | 50 | default CPU_FREQ_DEFAULT_GOV_USERSPACE if ARM_SA1100_CPUFREQ || ARM_SA1110_CPUFREQ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 51 | default CPU_FREQ_DEFAULT_GOV_PERFORMANCE |
| 52 | help |
| 53 | This option sets which CPUFreq governor shall be loaded at |
| 54 | startup. If in doubt, select 'performance'. |
| 55 | |
| 56 | config CPU_FREQ_DEFAULT_GOV_PERFORMANCE |
| 57 | bool "performance" |
| 58 | select CPU_FREQ_GOV_PERFORMANCE |
| 59 | help |
| 60 | Use the CPUFreq governor 'performance' as default. This sets |
| 61 | the frequency statically to the highest frequency supported by |
| 62 | the CPU. |
| 63 | |
Alessandro Guido | 30d221d | 2008-04-18 13:31:13 -0700 | [diff] [blame] | 64 | config CPU_FREQ_DEFAULT_GOV_POWERSAVE |
| 65 | bool "powersave" |
Alessandro Guido | 30d221d | 2008-04-18 13:31:13 -0700 | [diff] [blame] | 66 | select CPU_FREQ_GOV_POWERSAVE |
| 67 | help |
| 68 | Use the CPUFreq governor 'powersave' as default. This sets |
| 69 | the frequency statically to the lowest frequency supported by |
| 70 | the CPU. |
| 71 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 72 | config CPU_FREQ_DEFAULT_GOV_USERSPACE |
| 73 | bool "userspace" |
| 74 | select CPU_FREQ_GOV_USERSPACE |
| 75 | help |
| 76 | Use the CPUFreq governor 'userspace' as default. This allows |
Frederik Schwarzer | 0211a9c | 2008-12-29 22:14:56 +0100 | [diff] [blame] | 77 | you to set the CPU frequency manually or when a userspace |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 78 | program shall be able to set the CPU dynamically without having |
| 79 | to enable the userspace governor manually. |
| 80 | |
Thomas Renninger | 1c25624 | 2007-10-02 13:28:12 -0700 | [diff] [blame] | 81 | config CPU_FREQ_DEFAULT_GOV_ONDEMAND |
| 82 | bool "ondemand" |
| 83 | select CPU_FREQ_GOV_ONDEMAND |
| 84 | select CPU_FREQ_GOV_PERFORMANCE |
| 85 | help |
| 86 | Use the CPUFreq governor 'ondemand' as default. This allows |
| 87 | you to get a full dynamic frequency capable system by simply |
| 88 | loading your cpufreq low-level hardware driver. |
| 89 | Be aware that not all cpufreq drivers support the ondemand |
| 90 | governor. If unsure have a look at the help section of the |
| 91 | driver. Fallback governor will be the performance governor. |
| 92 | |
| 93 | config CPU_FREQ_DEFAULT_GOV_CONSERVATIVE |
| 94 | bool "conservative" |
| 95 | select CPU_FREQ_GOV_CONSERVATIVE |
| 96 | select CPU_FREQ_GOV_PERFORMANCE |
| 97 | help |
| 98 | Use the CPUFreq governor 'conservative' as default. This allows |
| 99 | you to get a full dynamic frequency capable system by simply |
| 100 | loading your cpufreq low-level hardware driver. |
| 101 | Be aware that not all cpufreq drivers support the conservative |
| 102 | governor. If unsure have a look at the help section of the |
| 103 | driver. Fallback governor will be the performance governor. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 104 | endchoice |
| 105 | |
| 106 | config CPU_FREQ_GOV_PERFORMANCE |
Mike Frysinger | 9101be5 | 2007-04-18 16:18:13 -0400 | [diff] [blame] | 107 | tristate "'performance' governor" |
| 108 | help |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 109 | This cpufreq governor sets the frequency statically to the |
| 110 | highest available CPU frequency. |
| 111 | |
Mike Frysinger | 9101be5 | 2007-04-18 16:18:13 -0400 | [diff] [blame] | 112 | To compile this driver as a module, choose M here: the |
| 113 | module will be called cpufreq_performance. |
| 114 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 115 | If in doubt, say Y. |
| 116 | |
| 117 | config CPU_FREQ_GOV_POWERSAVE |
Mike Frysinger | 9101be5 | 2007-04-18 16:18:13 -0400 | [diff] [blame] | 118 | tristate "'powersave' governor" |
| 119 | help |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 120 | This cpufreq governor sets the frequency statically to the |
| 121 | lowest available CPU frequency. |
| 122 | |
Mike Frysinger | 9101be5 | 2007-04-18 16:18:13 -0400 | [diff] [blame] | 123 | To compile this driver as a module, choose M here: the |
| 124 | module will be called cpufreq_powersave. |
| 125 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 126 | If in doubt, say Y. |
| 127 | |
| 128 | config CPU_FREQ_GOV_USERSPACE |
Mike Frysinger | 9101be5 | 2007-04-18 16:18:13 -0400 | [diff] [blame] | 129 | tristate "'userspace' governor for userspace frequency scaling" |
| 130 | help |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 131 | Enable this cpufreq governor when you either want to set the |
Frederik Schwarzer | 0211a9c | 2008-12-29 22:14:56 +0100 | [diff] [blame] | 132 | CPU frequency manually or when a userspace program shall |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 133 | be able to set the CPU dynamically, like on LART |
Erik Mouw | 4c41251 | 2006-04-03 14:21:00 +0200 | [diff] [blame] | 134 | <http://www.lartmaker.nl/>. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 135 | |
Mike Frysinger | 9101be5 | 2007-04-18 16:18:13 -0400 | [diff] [blame] | 136 | To compile this driver as a module, choose M here: the |
| 137 | module will be called cpufreq_userspace. |
| 138 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 139 | For details, take a look at <file:Documentation/cpu-freq/>. |
| 140 | |
| 141 | If in doubt, say Y. |
| 142 | |
| 143 | config CPU_FREQ_GOV_ONDEMAND |
| 144 | tristate "'ondemand' cpufreq policy governor" |
Larry Finger | 1e15f29 | 2012-12-29 01:55:20 +0000 | [diff] [blame] | 145 | select CPU_FREQ_GOV_COMMON |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 146 | help |
| 147 | 'ondemand' - This driver adds a dynamic cpufreq policy governor. |
| 148 | The governor does a periodic polling and |
| 149 | changes frequency based on the CPU utilization. |
| 150 | The support for this governor depends on CPU capability to |
| 151 | do fast frequency switching (i.e, very low latency frequency |
| 152 | transitions). |
| 153 | |
Mike Frysinger | 9101be5 | 2007-04-18 16:18:13 -0400 | [diff] [blame] | 154 | To compile this driver as a module, choose M here: the |
| 155 | module will be called cpufreq_ondemand. |
| 156 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 157 | For details, take a look at linux/Documentation/cpu-freq. |
| 158 | |
| 159 | If in doubt, say N. |
| 160 | |
Dave Jones | b917083 | 2005-05-31 19:03:47 -0700 | [diff] [blame] | 161 | config CPU_FREQ_GOV_CONSERVATIVE |
| 162 | tristate "'conservative' cpufreq governor" |
| 163 | depends on CPU_FREQ |
Larry Finger | 1e15f29 | 2012-12-29 01:55:20 +0000 | [diff] [blame] | 164 | select CPU_FREQ_GOV_COMMON |
Dave Jones | b917083 | 2005-05-31 19:03:47 -0700 | [diff] [blame] | 165 | help |
| 166 | 'conservative' - this driver is rather similar to the 'ondemand' |
| 167 | governor both in its source code and its purpose, the difference is |
| 168 | its optimisation for better suitability in a battery powered |
| 169 | environment. The frequency is gracefully increased and decreased |
| 170 | rather than jumping to 100% when speed is required. |
| 171 | |
| 172 | If you have a desktop machine then you should really be considering |
| 173 | the 'ondemand' governor instead, however if you are using a laptop, |
| 174 | PDA or even an AMD64 based computer (due to the unacceptable |
| 175 | step-by-step latency issues between the minimum and maximum frequency |
| 176 | transitions in the CPU) you will probably want to use this governor. |
| 177 | |
Mike Frysinger | 9101be5 | 2007-04-18 16:18:13 -0400 | [diff] [blame] | 178 | To compile this driver as a module, choose M here: the |
| 179 | module will be called cpufreq_conservative. |
| 180 | |
Dave Jones | b917083 | 2005-05-31 19:03:47 -0700 | [diff] [blame] | 181 | For details, take a look at linux/Documentation/cpu-freq. |
| 182 | |
| 183 | If in doubt, say N. |
| 184 | |
Viresh Kumar | f41f481 | 2014-11-15 08:50:44 +0530 | [diff] [blame] | 185 | comment "CPU frequency scaling drivers" |
| 186 | |
Viresh Kumar | bbcf071 | 2014-09-09 19:58:03 +0530 | [diff] [blame] | 187 | config CPUFREQ_DT |
| 188 | tristate "Generic DT based cpufreq driver" |
Viresh Kumar | 5fbfbcd | 2014-06-10 10:39:46 +0530 | [diff] [blame] | 189 | depends on HAVE_CLK && OF |
Viresh Kumar | bbcf071 | 2014-09-09 19:58:03 +0530 | [diff] [blame] | 190 | # if CPU_THERMAL is on and THERMAL=m, CPUFREQ_DT cannot be =y: |
Arnd Bergmann | 217886d | 2014-06-13 10:40:32 +0200 | [diff] [blame] | 191 | depends on !CPU_THERMAL || THERMAL |
Mark Brown | 109df08 | 2013-12-11 22:12:27 +0000 | [diff] [blame] | 192 | select PM_OPP |
Shawn Guo | 95ceafd | 2012-09-06 07:09:11 +0000 | [diff] [blame] | 193 | help |
Viresh Kumar | bbcf071 | 2014-09-09 19:58:03 +0530 | [diff] [blame] | 194 | This adds a generic DT based cpufreq driver for frequency management. |
Shawn Guo | 95ceafd | 2012-09-06 07:09:11 +0000 | [diff] [blame] | 195 | It supports both uniprocessor (UP) and symmetric multiprocessor (SMP) |
| 196 | systems which share clock and voltage across all CPUs. |
| 197 | |
| 198 | If in doubt, say N. |
| 199 | |
Viresh Kumar | f41f481 | 2014-11-15 08:50:44 +0530 | [diff] [blame] | 200 | if X86 |
Dave Jones | bb0a56e | 2011-05-19 18:51:07 -0400 | [diff] [blame] | 201 | source "drivers/cpufreq/Kconfig.x86" |
Viresh Kumar | f41f481 | 2014-11-15 08:50:44 +0530 | [diff] [blame] | 202 | endif |
Dave Jones | bb0a56e | 2011-05-19 18:51:07 -0400 | [diff] [blame] | 203 | |
Viresh Kumar | f41f481 | 2014-11-15 08:50:44 +0530 | [diff] [blame] | 204 | if ARM || ARM64 |
Kukjin Kim | f7d7707 | 2011-06-01 14:18:22 -0700 | [diff] [blame] | 205 | source "drivers/cpufreq/Kconfig.arm" |
Viresh Kumar | f41f481 | 2014-11-15 08:50:44 +0530 | [diff] [blame] | 206 | endif |
Kukjin Kim | f7d7707 | 2011-06-01 14:18:22 -0700 | [diff] [blame] | 207 | |
Viresh Kumar | f41f481 | 2014-11-15 08:50:44 +0530 | [diff] [blame] | 208 | if PPC32 || PPC64 |
| 209 | source "drivers/cpufreq/Kconfig.powerpc" |
| 210 | endif |
Viresh Kumar | 81c720c | 2013-04-04 12:54:17 +0000 | [diff] [blame] | 211 | |
Viresh Kumar | f41f481 | 2014-11-15 08:50:44 +0530 | [diff] [blame] | 212 | if AVR32 |
Viresh Kumar | 81c720c | 2013-04-04 12:54:17 +0000 | [diff] [blame] | 213 | config AVR32_AT32AP_CPUFREQ |
| 214 | bool "CPU frequency driver for AT32AP" |
| 215 | depends on PLATFORM_AT32AP |
| 216 | default n |
| 217 | help |
| 218 | This enables the CPU frequency driver for AT32AP processors. |
| 219 | If in doubt, say N. |
Viresh Kumar | f41f481 | 2014-11-15 08:50:44 +0530 | [diff] [blame] | 220 | endif |
Viresh Kumar | 81c720c | 2013-04-04 12:54:17 +0000 | [diff] [blame] | 221 | |
Viresh Kumar | f41f481 | 2014-11-15 08:50:44 +0530 | [diff] [blame] | 222 | if IA64 |
Viresh Kumar | ab423e4 | 2013-04-04 12:54:20 +0000 | [diff] [blame] | 223 | config IA64_ACPI_CPUFREQ |
| 224 | tristate "ACPI Processor P-States driver" |
Viresh Kumar | ab423e4 | 2013-04-04 12:54:20 +0000 | [diff] [blame] | 225 | depends on ACPI_PROCESSOR |
| 226 | help |
| 227 | This driver adds a CPUFreq driver which utilizes the ACPI |
| 228 | Processor Performance States. |
| 229 | |
| 230 | For details, take a look at <file:Documentation/cpu-freq/>. |
| 231 | |
| 232 | If in doubt, say N. |
Viresh Kumar | f41f481 | 2014-11-15 08:50:44 +0530 | [diff] [blame] | 233 | endif |
Viresh Kumar | ab423e4 | 2013-04-04 12:54:20 +0000 | [diff] [blame] | 234 | |
Viresh Kumar | f41f481 | 2014-11-15 08:50:44 +0530 | [diff] [blame] | 235 | if MIPS |
Viresh Kumar | 7a99893 | 2013-04-04 12:54:21 +0000 | [diff] [blame] | 236 | config LOONGSON2_CPUFREQ |
| 237 | tristate "Loongson2 CPUFreq Driver" |
Viresh Kumar | 7a99893 | 2013-04-04 12:54:21 +0000 | [diff] [blame] | 238 | help |
| 239 | This option adds a CPUFreq driver for loongson processors which |
| 240 | support software configurable cpu frequency. |
| 241 | |
| 242 | Loongson2F and it's successors support this feature. |
| 243 | |
| 244 | For details, take a look at <file:Documentation/cpu-freq/>. |
| 245 | |
| 246 | If in doubt, say N. |
| 247 | |
Kelvin Cheung | a0a22cf | 2014-10-17 18:23:31 +0800 | [diff] [blame] | 248 | config LOONGSON1_CPUFREQ |
| 249 | tristate "Loongson1 CPUFreq Driver" |
| 250 | help |
| 251 | This option adds a CPUFreq driver for loongson1 processors which |
| 252 | support software configurable cpu frequency. |
| 253 | |
| 254 | For details, take a look at <file:Documentation/cpu-freq/>. |
| 255 | |
| 256 | If in doubt, say N. |
Viresh Kumar | f41f481 | 2014-11-15 08:50:44 +0530 | [diff] [blame] | 257 | endif |
Kelvin Cheung | a0a22cf | 2014-10-17 18:23:31 +0800 | [diff] [blame] | 258 | |
Viresh Kumar | f41f481 | 2014-11-15 08:50:44 +0530 | [diff] [blame] | 259 | if SPARC64 |
Viresh Kumar | 764295a | 2013-04-04 12:54:24 +0000 | [diff] [blame] | 260 | config SPARC_US3_CPUFREQ |
| 261 | tristate "UltraSPARC-III CPU Frequency driver" |
Viresh Kumar | 764295a | 2013-04-04 12:54:24 +0000 | [diff] [blame] | 262 | help |
| 263 | This adds the CPUFreq driver for UltraSPARC-III processors. |
| 264 | |
| 265 | For details, take a look at <file:Documentation/cpu-freq>. |
| 266 | |
| 267 | If in doubt, say N. |
| 268 | |
| 269 | config SPARC_US2E_CPUFREQ |
| 270 | tristate "UltraSPARC-IIe CPU Frequency driver" |
Viresh Kumar | 764295a | 2013-04-04 12:54:24 +0000 | [diff] [blame] | 271 | help |
| 272 | This adds the CPUFreq driver for UltraSPARC-IIe processors. |
| 273 | |
| 274 | For details, take a look at <file:Documentation/cpu-freq>. |
| 275 | |
| 276 | If in doubt, say N. |
Viresh Kumar | f41f481 | 2014-11-15 08:50:44 +0530 | [diff] [blame] | 277 | endif |
Viresh Kumar | 764295a | 2013-04-04 12:54:24 +0000 | [diff] [blame] | 278 | |
Viresh Kumar | f41f481 | 2014-11-15 08:50:44 +0530 | [diff] [blame] | 279 | if SUPERH |
Viresh Kumar | 7258267 | 2013-04-04 12:54:22 +0000 | [diff] [blame] | 280 | config SH_CPU_FREQ |
| 281 | tristate "SuperH CPU Frequency driver" |
Viresh Kumar | 7258267 | 2013-04-04 12:54:22 +0000 | [diff] [blame] | 282 | help |
| 283 | This adds the cpufreq driver for SuperH. Any CPU that supports |
| 284 | clock rate rounding through the clock framework can use this |
| 285 | driver. While it will make the kernel slightly larger, this is |
| 286 | harmless for CPUs that don't support rate rounding. The driver |
| 287 | will also generate a notice in the boot log before disabling |
| 288 | itself if the CPU in question is not capable of rate rounding. |
| 289 | |
| 290 | For details, take a look at <file:Documentation/cpu-freq>. |
| 291 | |
| 292 | If unsure, say N. |
Viresh Kumar | f41f481 | 2014-11-15 08:50:44 +0530 | [diff] [blame] | 293 | endif |
Viresh Kumar | 7258267 | 2013-04-04 12:54:22 +0000 | [diff] [blame] | 294 | |
Dave Jones | bb0a56e | 2011-05-19 18:51:07 -0400 | [diff] [blame] | 295 | endif |
| 296 | endmenu |