diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2008-02-16 00:22:08 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2008-02-16 00:22:08 +0000 |
commit | 77ee651d6e4de50054d3dd1498f835e5ad17dc69 (patch) | |
tree | 577a7d3cfe7aa024fe42eae3a20c8f490bcd27f7 /packages/linux/gumstix-kernel-2.6.21/cpufreq-ondemand-by-default.patch | |
parent | 122a4440127e4015df191e4204fd05e132cba3eb (diff) | |
parent | c774a4e441deac27ee040a701926f0324cc5cd19 (diff) |
merge of '195b07032d60a83bcce6ef3b56a7a95b75566dcd'
and '5298691784024e845135b17a0613495c22075e0d'
Diffstat (limited to 'packages/linux/gumstix-kernel-2.6.21/cpufreq-ondemand-by-default.patch')
-rw-r--r-- | packages/linux/gumstix-kernel-2.6.21/cpufreq-ondemand-by-default.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/packages/linux/gumstix-kernel-2.6.21/cpufreq-ondemand-by-default.patch b/packages/linux/gumstix-kernel-2.6.21/cpufreq-ondemand-by-default.patch new file mode 100644 index 0000000000..bb5443cdef --- /dev/null +++ b/packages/linux/gumstix-kernel-2.6.21/cpufreq-ondemand-by-default.patch @@ -0,0 +1,42 @@ +Index: linux-2.6.21gum/drivers/cpufreq/Kconfig +=================================================================== +--- linux-2.6.21gum.orig/drivers/cpufreq/Kconfig ++++ linux-2.6.21gum/drivers/cpufreq/Kconfig +@@ -52,7 +52,7 @@ config CPU_FREQ_STAT_DETAILS + + choice + prompt "Default CPUFreq governor" +- default CPU_FREQ_DEFAULT_GOV_USERSPACE if CPU_FREQ_SA1100 || CPU_FREQ_SA1110 ++ default CPU_FREQ_DEFAULT_GOV_USERSPACE if CPU_FREQ_SA1100 || CPU_FREQ_SA1110 || CPU_FREQ_PXA + default CPU_FREQ_DEFAULT_GOV_PERFORMANCE + help + This option sets which CPUFreq governor shall be loaded at +@@ -75,6 +75,14 @@ config CPU_FREQ_DEFAULT_GOV_USERSPACE + program shall be able to set the CPU dynamically without having + to enable the userspace governor manually. + ++config CPU_FREQ_DEFAULT_GOV_ONDEMAND ++ bool "ondemand" ++ select CPU_FREQ_GOV_ONDEMAND ++ help ++ Use the CPUFreq governor 'ondemand' as default. This sets ++ the frequency dynamically based on CPU load, throttling up ++ and down as necessary. ++ + endchoice + + config CPU_FREQ_GOV_PERFORMANCE +Index: linux-2.6.21gum/include/linux/cpufreq.h +=================================================================== +--- linux-2.6.21gum.orig/include/linux/cpufreq.h ++++ linux-2.6.21gum/include/linux/cpufreq.h +@@ -286,6 +286,9 @@ extern struct cpufreq_governor cpufreq_g + #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE) + extern struct cpufreq_governor cpufreq_gov_userspace; + #define CPUFREQ_DEFAULT_GOVERNOR &cpufreq_gov_userspace ++#elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND) ++extern struct cpufreq_governor cpufreq_gov_dbs; ++#define CPUFREQ_DEFAULT_GOVERNOR &cpufreq_gov_dbs; + #endif + + |