* [PATCH] ARM: OMAP2+: timer: add probe for clocksources
@ 2016-06-16 12:25 Tero Kristo
2016-06-17 9:55 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Tero Kristo @ 2016-06-16 12:25 UTC (permalink / raw)
To: linux-omap, tony; +Cc: linux-arm-kernel
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 <t-kristo@ti.com>
---
arch/arm/mach-omap2/timer.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
index 5b385bb..cb9497a 100644
--- a/arch/arm/mach-omap2/timer.c
+++ b/arch/arm/mach-omap2/timer.c
@@ -496,8 +496,7 @@ void __init omap_init_time(void)
__omap_sync32k_timer_init(1, "timer_32k_ck", "ti,timer-alwon",
2, "timer_sys_ck", NULL, false);
- if (of_have_populated_dt())
- clocksource_probe();
+ clocksource_probe();
}
#if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_SOC_AM43XX)
@@ -505,6 +504,8 @@ void __init omap3_secure_sync32k_timer_init(void)
{
__omap_sync32k_timer_init(12, "secure_32k_fck", "ti,timer-secure",
2, "timer_sys_ck", NULL, false);
+
+ clocksource_probe();
}
#endif /* CONFIG_ARCH_OMAP3 */
@@ -513,6 +514,8 @@ void __init omap3_gptimer_timer_init(void)
{
__omap_sync32k_timer_init(2, "timer_sys_ck", NULL,
1, "timer_sys_ck", "ti,timer-alwon", true);
+
+ clocksource_probe();
}
#endif
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: OMAP2+: timer: add probe for clocksources
2016-06-16 12:25 [PATCH] ARM: OMAP2+: timer: add probe for clocksources Tero Kristo
@ 2016-06-17 9:55 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2016-06-17 9:55 UTC (permalink / raw)
To: Tero Kristo; +Cc: linux-omap, linux-arm-kernel
* Tero Kristo <t-kristo@ti.com> [160616 05:27]:
> 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.
Good catch, applying into omap-for-v4.7/fixes thanks.
Tony
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-17 9:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-16 12:25 [PATCH] ARM: OMAP2+: timer: add probe for clocksources Tero Kristo
2016-06-17 9:55 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).