Skip to content

Commit 970f909

Browse files
Tero Kristotmlind
authored andcommitted
ARM: OMAP2+: timer: add probe for clocksources
A few platforms are currently missing clocksource_probe() completely in their time_init functionality. On OMAP3430 for example, this is causing cpuidle to be pretty much dead, as the counter32k is not going to be registered and instead a gptimer is used as a clocksource. This will tick in periodic mode, preventing any deeper idle states. While here, also drop one unnecessary check for populated DT before existing clocksource_probe() call. Signed-off-by: Tero Kristo <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent ef5bdcc commit 970f909

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

arch/arm/mach-omap2/timer.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,15 +496,16 @@ void __init omap_init_time(void)
496496
__omap_sync32k_timer_init(1, "timer_32k_ck", "ti,timer-alwon",
497497
2, "timer_sys_ck", NULL, false);
498498

499-
if (of_have_populated_dt())
500-
clocksource_probe();
499+
clocksource_probe();
501500
}
502501

503502
#if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_SOC_AM43XX)
504503
void __init omap3_secure_sync32k_timer_init(void)
505504
{
506505
__omap_sync32k_timer_init(12, "secure_32k_fck", "ti,timer-secure",
507506
2, "timer_sys_ck", NULL, false);
507+
508+
clocksource_probe();
508509
}
509510
#endif /* CONFIG_ARCH_OMAP3 */
510511

@@ -513,6 +514,8 @@ void __init omap3_gptimer_timer_init(void)
513514
{
514515
__omap_sync32k_timer_init(2, "timer_sys_ck", NULL,
515516
1, "timer_sys_ck", "ti,timer-alwon", true);
517+
518+
clocksource_probe();
516519
}
517520
#endif
518521

0 commit comments

Comments
 (0)