Skip to content

Commit

Permalink
[MIPS] Add mips_hpt_frequency check to mips_clockevent_init().
Browse files Browse the repository at this point in the history
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Oct 29, 2007
1 parent 8a13ecd commit 22df3f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/kernel/cevt-r4k.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 22df3f5

Please sign in to comment.