1 Index: linux-2.6.21.7/drivers/cpufreq/Kconfig
2 ===================================================================
3 --- linux-2.6.21.7.orig/drivers/cpufreq/Kconfig
4 +++ linux-2.6.21.7/drivers/cpufreq/Kconfig
5 @@ -52,7 +52,7 @@ config CPU_FREQ_STAT_DETAILS
8 prompt "Default CPUFreq governor"
9 - default CPU_FREQ_DEFAULT_GOV_USERSPACE if CPU_FREQ_SA1100 || CPU_FREQ_SA1110
10 + default CPU_FREQ_DEFAULT_GOV_USERSPACE if CPU_FREQ_SA1100 || CPU_FREQ_SA1110 || CPU_FREQ_PXA
11 default CPU_FREQ_DEFAULT_GOV_PERFORMANCE
13 This option sets which CPUFreq governor shall be loaded at
14 @@ -75,6 +75,14 @@ config CPU_FREQ_DEFAULT_GOV_USERSPACE
15 program shall be able to set the CPU dynamically without having
16 to enable the userspace governor manually.
18 +config CPU_FREQ_DEFAULT_GOV_ONDEMAND
20 + select CPU_FREQ_GOV_ONDEMAND
22 + Use the CPUFreq governor 'ondemand' as default. This sets
23 + the frequency dynamically based on CPU load, throttling up
24 + and down as necessary.
28 config CPU_FREQ_GOV_PERFORMANCE
29 Index: linux-2.6.21.7/include/linux/cpufreq.h
30 ===================================================================
31 --- linux-2.6.21.7.orig/include/linux/cpufreq.h
32 +++ linux-2.6.21.7/include/linux/cpufreq.h
33 @@ -286,6 +286,9 @@ extern struct cpufreq_governor cpufreq_g
34 #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE)
35 extern struct cpufreq_governor cpufreq_gov_userspace;
36 #define CPUFREQ_DEFAULT_GOVERNOR &cpufreq_gov_userspace
37 +#elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND)
38 +extern struct cpufreq_governor cpufreq_gov_dbs;
39 +#define CPUFREQ_DEFAULT_GOVERNOR &cpufreq_gov_dbs;