]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ARM: OMAP: timer32k: fix tick count calculation when reprogramming
authorImre Deak <imre.deak@solidboot.com>
Mon, 25 Sep 2006 09:41:21 +0000 (12:41 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 25 Sep 2006 09:41:21 +0000 (12:41 +0300)
commitdf51a84d93e776b7481d937ccd60be1b27d320c5
treee94a6327eff576dac2ea84cae1e7e3ebda0f0cfe
parentae78dcf79aefa98a1ed245898467eb6d3bfc11e6
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>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/timer32k.c