aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorWu Zhangjin <wuzhangjin@gmail.com>2009-11-16 12:32:58 -0500
committerRalf Baechle <ralf@linux-mips.org>2009-12-16 20:57:20 -0500
commit9726b43a4d7aaa5b30f559e78768aeb3d17bc224 (patch)
tree8839f39acad92050e79005827b75794ed4bfd830 /arch/mips
parent916daba8a9f2617ded8b9255e6b39f066ef60178 (diff)
MIPS: Add basic CPUFreq options.
This patch adds basic options for MIPS CPUFreq support. Since the cp0 timer's frequency is based on the processor clockrate it can not be used with CPUFReq; an additional external timer is required. Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> Cc: linux-mips@linux-mips.org Cc: cpufreq@vger.kernel.org, Cc: Dave Jones <davej@redhat.com>, Cc: Dominik Brodowski <linux@dominikbrodowski.net>, Cc: yanh@lemote.com Cc: huhb@lemote.com, Patchwork: http://patchwork.linux-mips.org/patch/659/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/Kconfig3
-rw-r--r--arch/mips/kernel/cpufreq/Kconfig27
2 files changed, 30 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index e7f385444d41..435838ec9591 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2161,6 +2161,7 @@ config MMU
2161 2161
2162config I8253 2162config I8253
2163 bool 2163 bool
2164 select MIPS_EXTERNAL_TIMER
2164 2165
2165config ZONE_DMA32 2166config ZONE_DMA32
2166 bool 2167 bool
@@ -2237,6 +2238,8 @@ source "kernel/power/Kconfig"
2237 2238
2238endmenu 2239endmenu
2239 2240
2241source "arch/mips/kernel/cpufreq/Kconfig"
2242
2240source "net/Kconfig" 2243source "net/Kconfig"
2241 2244
2242source "drivers/Kconfig" 2245source "drivers/Kconfig"
diff --git a/arch/mips/kernel/cpufreq/Kconfig b/arch/mips/kernel/cpufreq/Kconfig
new file mode 100644
index 000000000000..37983a15dabe
--- /dev/null
+++ b/arch/mips/kernel/cpufreq/Kconfig
@@ -0,0 +1,27 @@
1#
2# CPU Frequency scaling
3#
4
5config MIPS_EXTERNAL_TIMER
6 bool
7
8config MIPS_CPUFREQ
9 bool
10 default y
11 depends on CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
12
13if MIPS_CPUFREQ
14
15menu "CPU Frequency scaling"
16
17source "drivers/cpufreq/Kconfig"
18
19if CPU_FREQ
20
21comment "CPUFreq processor drivers"
22
23endif # CPU_FREQ
24
25endmenu
26
27endif # MIPS_CPUFREQ