]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ARM: OMAP: timer32k: fix tick count calculation when reprogramming
authorImre Deak <imre.deak@solidboot.com>
Thu, 6 Jul 2006 16:23:09 +0000 (19:23 +0300)
committerJuha Yrjola <juha.yrjola@solidboot.com>
Mon, 24 Jul 2006 13:55:38 +0000 (16:55 +0300)
commitf0067987ee22e678bf9b525bad4f55447f4914a8
treeb00d2f7ce041e952d517fc8efa2453364fc5393b
parentc5c1e4e33799c3604485a98d00a97471409f046c
ARM: OMAP: timer32k: fix tick count calculation when reprogramming

Reprogramming takes places before putting the CPU into idle mode if
the dynamic tick option is enabled. The timer is then set to expire
at the next pending timer event. Because some time has already passed
since the last reported jiffy we have to wait less than the time
specified in jiffies.

Also make sure we don't set a load value of 0 whose outcome is
unspecified according to the TRM.

Signed-off-by: Imre Deak <imre.deak@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
arch/arm/plat-omap/timer32k.c