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