clocksource: arm_arch_timer: Use clocksource for suspend timekeeping
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 27 Sep 2013 20:13:12 +0000 (13:13 -0700)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 2 Oct 2013 09:43:17 +0000 (11:43 +0200)
commit4fbcdc813fb9c0324fcff4c75414e717569d965e
tree456d6fa06f5f604f820d3c2caa2e29b60bd60b5d
parent1cf0203ac9e3d7abed67196db494469b24fe09e3
clocksource: arm_arch_timer: Use clocksource for suspend timekeeping

The ARM architected timers keep counting during suspend so we can
mark this clocksource with the CLOCK_SOURCE_SUSPEND_NONSTOP flag.
This flag will indicate that this clocksource can be used for
calculating suspend time and injecting sleep time into the
timekeeping core. This should be more accurate than using an
external RTC or architecture specific persistent clock.

Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/arm_arch_timer.c