From: Imre Deak Date: Mon, 25 Sep 2006 09:41:21 +0000 (+0300) Subject: ARM: OMAP: timer32k: fix tick count calculation when reprogramming X-Git-Tag: v2.6.19-rc1~885^2~18^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df51a84d93e776b7481d937ccd60be1b27d320c5;p=pandora-kernel.git 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 Signed-off-by: Juha Yrjola Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed