diff options
author | Tomasz Figa <[email protected]> | 2013-04-23 17:46:29 +0200 |
---|---|---|
committer | Olof Johansson <[email protected]> | 2013-04-28 12:17:01 -0700 |
commit | 6fe4dfd041dadbc1cc2460ed8680f2734dc3dc95 (patch) | |
tree | 05c695f8677efcdfbaa6a3e8e84b7c57d940f172 /lib/mpi/mpi-bit.c | |
parent | e9b852b8a7bc0217a03afff07fad34093e087542 (diff) |
clocksource: samsung_pwm_timer: Correct programming of clock events
In current code, the tick count value programmed to the hardware is
always decremented by one. This is reasonable for periodic mode, since
there is one extra tick between 0 and COUNT (after reloading), but it
makes oneshot events happen 1 tick earlier than requested, because the
interrupt is triggered on transition from 1 to 0.
This patch removes the decrementation from PWM channel setup code and
moves it instead to periodic timer setup, to make both periodic and
oneshot modes work correctly.
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