[kernel] update to 2.6.27.13
[openwrt.git] / target / linux / pxa / patches-2.6.21 / 016-cpufreq-ondemand-by-default.patch
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
6
7 choice
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
12 help
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.
17
18 +config CPU_FREQ_DEFAULT_GOV_ONDEMAND
19 + bool "ondemand"
20 + select CPU_FREQ_GOV_ONDEMAND
21 + help
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.
25 +
26 endchoice
27
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;
40 #endif
41
42
This page took 0.037865 seconds and 5 git commands to generate.