1 --- a/drivers/cpufreq/Kconfig
2 +++ b/drivers/cpufreq/Kconfig
3 @@ -52,7 +52,7 @@ config CPU_FREQ_STAT_DETAILS
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
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.
16 +config CPU_FREQ_DEFAULT_GOV_ONDEMAND
18 + select CPU_FREQ_GOV_ONDEMAND
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.
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;