[brcm63xx] bcm6345 fixes from AndyI
[openwrt.git] / target / linux / pxa / patches-2.6.21 / 016-cpufreq-ondemand-by-default.patch
1 --- a/drivers/cpufreq/Kconfig
2 +++ b/drivers/cpufreq/Kconfig
3 @@ -52,7 +52,7 @@ config CPU_FREQ_STAT_DETAILS
4
5 choice
6 prompt "Default CPUFreq governor"
7 - default CPU_FREQ_DEFAULT_GOV_USERSPACE if CPU_FREQ_SA1100 || CPU_FREQ_SA1110
8 + default CPU_FREQ_DEFAULT_GOV_USERSPACE if CPU_FREQ_SA1100 || CPU_FREQ_SA1110 || CPU_FREQ_PXA
9 default CPU_FREQ_DEFAULT_GOV_PERFORMANCE
10 help
11 This option sets which CPUFreq governor shall be loaded at
12 @@ -75,6 +75,14 @@ config CPU_FREQ_DEFAULT_GOV_USERSPACE
13 program shall be able to set the CPU dynamically without having
14 to enable the userspace governor manually.
15
16 +config CPU_FREQ_DEFAULT_GOV_ONDEMAND
17 + bool "ondemand"
18 + select CPU_FREQ_GOV_ONDEMAND
19 + help
20 + Use the CPUFreq governor 'ondemand' as default. This sets
21 + the frequency dynamically based on CPU load, throttling up
22 + and down as necessary.
23 +
24 endchoice
25
26 config CPU_FREQ_GOV_PERFORMANCE
27 --- a/include/linux/cpufreq.h
28 +++ b/include/linux/cpufreq.h
29 @@ -286,6 +286,9 @@ extern struct cpufreq_governor cpufreq_g
30 #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE)
31 extern struct cpufreq_governor cpufreq_gov_userspace;
32 #define CPUFREQ_DEFAULT_GOVERNOR &cpufreq_gov_userspace
33 +#elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND)
34 +extern struct cpufreq_governor cpufreq_gov_dbs;
35 +#define CPUFREQ_DEFAULT_GOVERNOR &cpufreq_gov_dbs;
36 #endif
37
38
This page took 0.042206 seconds and 5 git commands to generate.