Commit 22df3f53 authored by Yoichi Yuasa's avatar Yoichi Yuasa Committed by Ralf Baechle
Browse files

[MIPS] Add mips_hpt_frequency check to mips_clockevent_init().

parent 8a13ecd7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -220,7 +220,7 @@ void __cpuinit mips_clockevent_init(void)
	struct clock_event_device *cd;
	struct clock_event_device *cd;
	unsigned int irq = MIPS_CPU_IRQ_BASE + 7;
	unsigned int irq = MIPS_CPU_IRQ_BASE + 7;


	if (!cpu_has_counter)
	if (!cpu_has_counter || !mips_hpt_frequency)
		return;
		return;


#ifdef CONFIG_MIPS_MT_SMTC
#ifdef CONFIG_MIPS_MT_SMTC