mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-05 04:49:44 +02:00
316a885776
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11209 3c298f89-4303-0410-b956-a3cf2f4a3e73
43 lines
1.6 KiB
Diff
43 lines
1.6 KiB
Diff
Index: linux-2.6.21.7/drivers/cpufreq/Kconfig
|
|
===================================================================
|
|
--- linux-2.6.21.7.orig/drivers/cpufreq/Kconfig
|
|
+++ linux-2.6.21.7/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.21.7/include/linux/cpufreq.h
|
|
===================================================================
|
|
--- linux-2.6.21.7.orig/include/linux/cpufreq.h
|
|
+++ linux-2.6.21.7/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
|
|
|
|
|