From: Tomasz Figa Date: Tue, 23 Apr 2013 15:46:30 +0000 (+0200) Subject: clocksource: samsung_pwm_timer: Work around rounding errors in clockevents core X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~6^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81d4f7bfdc9417e7d8fc1133c762daa4458eec5e;p=pandora-kernel.git clocksource: samsung_pwm_timer: Work around rounding errors in clockevents core Due to rounding errors in clockevents core (in conversions between ticks and nsecs), it might happen that the set_next_event callback gets called with cycles = 0, causing the code to incorrectly program the PWM timer. This patch modifies the callback to program the timer for 1 tick, if received tick count value is 0. Signed-off-by: Tomasz Figa Signed-off-by: Kyungmin Park Reviewed-by: Arnd Bergmann Acked-by: Kukjin Kim Signed-off-by: Olof Johansson --- Reading git-diff-tree failed