Skip to content

Commit 9726b43

Browse files
lzufalconralfbaechle
authored andcommitted
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>
1 parent 916daba commit 9726b43

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

arch/mips/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2161,6 +2161,7 @@ config MMU
21612161

21622162
config I8253
21632163
bool
2164+
select MIPS_EXTERNAL_TIMER
21642165

21652166
config ZONE_DMA32
21662167
bool
@@ -2237,6 +2238,8 @@ source "kernel/power/Kconfig"
22372238

22382239
endmenu
22392240

2241+
source "arch/mips/kernel/cpufreq/Kconfig"
2242+
22402243
source "net/Kconfig"
22412244

22422245
source "drivers/Kconfig"

arch/mips/kernel/cpufreq/Kconfig

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#
2+
# CPU Frequency scaling
3+
#
4+
5+
config MIPS_EXTERNAL_TIMER
6+
bool
7+
8+
config MIPS_CPUFREQ
9+
bool
10+
default y
11+
depends on CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
12+
13+
if MIPS_CPUFREQ
14+
15+
menu "CPU Frequency scaling"
16+
17+
source "drivers/cpufreq/Kconfig"
18+
19+
if CPU_FREQ
20+
21+
comment "CPUFreq processor drivers"
22+
23+
endif # CPU_FREQ
24+
25+
endmenu
26+
27+
endif # MIPS_CPUFREQ

0 commit comments

Comments
 (0)