|
@@ -200,10 +200,21 @@ static u64 notrace exynos4_read_sched_clock(void)
|
|
|
return _exynos4_frc_read();
|
|
|
}
|
|
|
|
|
|
+static struct delay_timer exynos4_delay_timer;
|
|
|
+
|
|
|
+static cycles_t exynos4_read_current_timer(void)
|
|
|
+{
|
|
|
+ return _exynos4_frc_read();
|
|
|
+}
|
|
|
+
|
|
|
static void __init exynos4_clocksource_init(void)
|
|
|
{
|
|
|
exynos4_mct_frc_start();
|
|
|
|
|
|
+ exynos4_delay_timer.read_current_timer = &exynos4_read_current_timer;
|
|
|
+ exynos4_delay_timer.freq = clk_rate;
|
|
|
+ register_current_timer_delay(&exynos4_delay_timer);
|
|
|
+
|
|
|
if (clocksource_register_hz(&mct_frc, clk_rate))
|
|
|
panic("%s: can't register clocksource\n", mct_frc.name);
|
|
|
|