]> git.baikalelectronics.ru Git - kernel.git/commit
omap: timer: Set dmtimer used as clocksource in autoreload mode
authorHemant Pedanekar <hemantp@ti.com>
Wed, 10 Aug 2011 13:19:35 +0000 (13:19 +0000)
committerTony Lindgren <tony@atomide.com>
Wed, 10 Aug 2011 14:36:45 +0000 (07:36 -0700)
commitc0b75654035190618c2e362f0dc12f9a99ab3bf7
tree29cefbbfa3315e96c4ca807a2288a23ed3c2240b
parent70e626d14d4ac9d1bbddb4f6c0d7093119643ec3
omap: timer: Set dmtimer used as clocksource in autoreload mode

If CONFIG_OMAP_32K_TIMER is not selected and dmtimer is used as clocksource, the
timer stops counting once overflow occurs as it was not set in autoreload mode.
This results into timekeeping failure: for example, 'sleep 1' at the shell after
the timer counter overflow would hang.

This patch sets up autoreload when starting the clocksource timer which fixes
the above issue.

Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/timer.c