aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap
diff options
context:
space:
mode:
authorJon Hunter <jon-hunter@ti.com>2013-03-19 13:38:16 -0400
committerBenoit Cousson <benoit.cousson@linaro.org>2013-04-08 18:21:30 -0400
commit385c4c7b7c2f6829048d8b041b31f9da10a8202e (patch)
tree7bf3d6b2422971c7a7bfd6dee34ba7dd3b1f153f /arch/arm/plat-omap
parent9cc268d5bbc097ae5a3ae236fb2461ea113274bf (diff)
ARM: OMAP: Force dmtimer restore if context loss is not detectable
When booting with device-tree the function pointer for detecting context loss is not populated. Ideally, the pm_runtime framework should be enhanced to allow a means for reporting context/state loss and we could avoid populating such function pointers altogether. In the interim until a generic non-device specific solution is in place, force a restore of the dmtimer when enabling the timer. Signed-off-by: Jon Hunter <jon-hunter@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Benoit Cousson <benoit.cousson@linaro.org>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r--arch/arm/plat-omap/dmtimer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c
index 5cae1dd1f365..725d9720dd2b 100644
--- a/arch/arm/plat-omap/dmtimer.c
+++ b/arch/arm/plat-omap/dmtimer.c
@@ -326,6 +326,8 @@ void omap_dm_timer_enable(struct omap_dm_timer *timer)
326 omap_timer_restore_context(timer); 326 omap_timer_restore_context(timer);
327 timer->ctx_loss_count = c; 327 timer->ctx_loss_count = c;
328 } 328 }
329 } else {
330 omap_timer_restore_context(timer);
329 } 331 }
330 } 332 }
331} 333}