Преглед изворни кода

[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>
Yoichi Yuasa пре 18 година
родитељ
комит
22df3f53e3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      arch/mips/kernel/cevt-r4k.c

+ 1 - 1
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