From: Imre Deak Date: Thu, 6 Jul 2006 16:23:09 +0000 (+0300) Subject: ARM: OMAP: timer32k: fix tick count calculation when reprogramming X-Git-Tag: v2.6.17-omap2~22 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0067987ee22e678bf9b525bad4f55447f4914a8;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 --- Reading git-diff-tree failed