[lkml]   [2019]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 5.0 074/238] clocksource/drivers/exynos_mct: Clear timer interrupt when shutdown
5.0-stable review patch.  If anyone has any objections, please let me know.


From: Stuart Menefy <>

commit d2f276c8d3c224d5b493c42b6cf006ae4e64fb1c upstream.

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 <>
Reviewed-by: Krzysztof Kozlowski <>
Tested-by: Marek Szyprowski <>
Cc: <> # v4.3+
Signed-off-by: Daniel Lezcano <>
Signed-off-by: Greg Kroah-Hartman <>

drivers/clocksource/exynos_mct.c | 1 +
1 file changed, 1 insertion(+)

--- a/drivers/clocksource/exynos_mct.c
+++ b/drivers/clocksource/exynos_mct.c
@@ -411,6 +411,7 @@ static int set_state_shutdown(struct clo

mevt = container_of(evt, struct mct_clock_event_device, evt);
+ exynos4_mct_tick_clear(mevt);
return 0;

 \ /
  Last update: 2019-03-22 13:33    [W:0.595 / U:1.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site