diff options
author | Stuart Menefy <stuart.menefy@mathembedded.com> | 2019-02-10 22:51:14 +0000 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2019-02-18 04:55:29 +0000 |
commit | fd05744784293aec511d0472f3e897846a17303d (patch) | |
tree | 6e10ad359dc745ec9131bd4457354e8d4566cb01 /drivers | |
parent | 9de9c3af6677c5d8aaad9c1cf3cc6fb74214e2fb (diff) | |
download | linux-exynos-fd05744784293aec511d0472f3e897846a17303d.tar.gz linux-exynos-fd05744784293aec511d0472f3e897846a17303d.tar.bz2 linux-exynos-fd05744784293aec511d0472f3e897846a17303d.zip |
clocksource: exynos_mct: Clear timer interrupt when shutdown
When shutting down the timer, ensure that after we have stopped the
timer any pending interrupts are cleared. This fixes a problem when
suspending, as interrupts are disabled before the timer is stopped,
so the timer interrupt may still be asserted, preventing the system
entering a low power state when the wfi is executed.
Signed-off-by: Stuart Menefy <stuart.menefy@mathembedded.com>
[pending patch for mainline]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I2068bbadeb5e778bb81f772693e30a47e64dd77c
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/clocksource/exynos_mct.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 1e325f89d408..d55c30f6981d 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -411,6 +411,7 @@ static int set_state_shutdown(struct clock_event_device *evt) mevt = container_of(evt, struct mct_clock_event_device, evt); exynos4_mct_tick_stop(mevt); + exynos4_mct_tick_clear(mevt); return 0; } |