mirror of
https://github.com/torvalds/linux.git
synced 2024-12-19 09:32:32 +00:00
6fe4dfd041
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 <t.figa@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Olof Johansson <olof@lixom.net> |
||
---|---|---|
.. | ||
acpi_pm.c | ||
arm_arch_timer.c | ||
bcm2835_timer.c | ||
clksrc-dbx500-prcmu.c | ||
clksrc-of.c | ||
cs5535-clockevt.c | ||
cyclone.c | ||
dw_apb_timer_of.c | ||
dw_apb_timer.c | ||
em_sti.c | ||
i8253.c | ||
Kconfig | ||
Makefile | ||
metag_generic.c | ||
mmio.c | ||
nomadik-mtu.c | ||
samsung_pwm_timer.c | ||
scx200_hrt.c | ||
sh_cmt.c | ||
sh_mtu2.c | ||
sh_tmu.c | ||
sunxi_timer.c | ||
tcb_clksrc.c | ||
tegra20_timer.c | ||
time-armada-370-xp.c | ||
vt8500_timer.c |