diff options
author | Tomasz Figa <[email protected]> | 2013-04-23 17:46:30 +0200 |
---|---|---|
committer | Olof Johansson <[email protected]> | 2013-04-28 12:17:05 -0700 |
commit | 81d4f7bfdc9417e7d8fc1133c762daa4458eec5e (patch) | |
tree | a9942c9fb2ec8d830ead2fb01517b7f95985fb80 /lib/mpi/mpi-bit.c | |
parent | 6fe4dfd041dadbc1cc2460ed8680f2734dc3dc95 (diff) |
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 <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Acked-by: Kukjin Kim <[email protected]>
Signed-off-by: Olof Johansson <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions