mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-24 14:33:42 +00:00
[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>
This commit is contained in:
parent
8a13ecd7b2
commit
22df3f53e3
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user