clocksource: exynos_mct: Clear timer interrupt when shutdown 87/199787/2
authorStuart Menefy <stuart.menefy@mathembedded.com>
Sun, 10 Feb 2019 22:51:14 +0000 (22:51 +0000)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 18 Feb 2019 04:55:29 +0000 (04:55 +0000)
commitfd05744784293aec511d0472f3e897846a17303d
tree6e10ad359dc745ec9131bd4457354e8d4566cb01
parent9de9c3af6677c5d8aaad9c1cf3cc6fb74214e2fb
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
drivers/clocksource/exynos_mct.c