From: Jonas Aaberg Date: Wed, 21 Sep 2011 05:47:02 +0000 (+0200) Subject: ARM: ux500: Reprogram timers upon resume X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bb219dba0d1e46324ea462ba42f6fd8e9b7471de;p=linux-beck.git ARM: ux500: Reprogram timers upon resume On ux500 the MTU timer blocks are powered off during suspend/resume, so these need some reinitialization when coming back from suspend. Cc: Thomas Gleixner Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij --- diff --git a/arch/arm/mach-ux500/timer.c b/arch/arm/mach-ux500/timer.c index 36a82bf57d55..08c55a53cb83 100644 --- a/arch/arm/mach-ux500/timer.c +++ b/arch/arm/mach-ux500/timer.c @@ -53,6 +53,13 @@ static void __init ux500_timer_init(void) clksrc_dbx500_prcmu_init(); } +static void ux500_timer_reset(void) +{ + nmdk_clkevt_reset(); + nmdk_clksrc_reset(); +} + struct sys_timer ux500_timer = { .init = ux500_timer_init, + .resume = ux500_timer_reset, };