Commit 7d9cd1f5 authored by Markos Chandras's avatar Markos Chandras Committed by Ralf Baechle

CLOCKSOURCE: mips-gic-timer: Ensure GIC counter is running

Start the GIC counter after configuring the clocksource since there
are no guarantees the counter will be running after a CPU reset.
Signed-off-by: default avatarMarkos Chandras <markos.chandras@imgtec.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9595/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 8fa4b930
...@@ -133,6 +133,9 @@ static void __init __gic_clocksource_init(void) ...@@ -133,6 +133,9 @@ static void __init __gic_clocksource_init(void)
clocksource_register_hz(&gic_clocksource, gic_frequency); clocksource_register_hz(&gic_clocksource, gic_frequency);
gic_clockevent_init(); gic_clockevent_init();
/* And finally start the counter */
gic_start_count();
} }
void __init gic_clocksource_init(unsigned int frequency) void __init gic_clocksource_init(unsigned int frequency)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment