aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/cevt-r4k.c
diff options
context:
space:
mode:
authorYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>2007-10-26 22:27:05 +0900
committerRalf Baechle <ralf@linux-mips.org>2007-10-29 19:35:35 +0000
commit22df3f53e33d55335e1ef43d4e6ead54b379b3a2 (patch)
tree5b4ba495c16a2433263b82382edfb4eec689b527 /arch/mips/kernel/cevt-r4k.c
parent8a13ecd7b2f8008659e91213f2803f269f1d8edf (diff)
downloadkernel_samsung_espresso10-22df3f53e33d55335e1ef43d4e6ead54b379b3a2.zip
kernel_samsung_espresso10-22df3f53e33d55335e1ef43d4e6ead54b379b3a2.tar.gz
kernel_samsung_espresso10-22df3f53e33d55335e1ef43d4e6ead54b379b3a2.tar.bz2
[MIPS] Add mips_hpt_frequency check to mips_clockevent_init().
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/cevt-r4k.c')
-rw-r--r--arch/mips/kernel/cevt-r4k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/cevt-r4k.c b/arch/mips/kernel/cevt-r4k.c
index ae2984f..cb46b02 100644
--- a/arch/mips/kernel/cevt-r4k.c
+++ b/arch/mips/kernel/cevt-r4k.c
@@ -220,7 +220,7 @@ void __cpuinit mips_clockevent_init(void)
struct clock_event_device *cd;
unsigned int irq = MIPS_CPU_IRQ_BASE + 7;
- if (!cpu_has_counter)
+ if (!cpu_has_counter || !mips_hpt_frequency)
return;
#ifdef CONFIG_MIPS_MT_SMTC