ARM: sync sched_clock() state on suspend
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 4 Feb 2012 12:31:27 +0000 (12:31 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 24 Mar 2012 09:38:53 +0000 (09:38 +0000)
commitf153d017ab70d2954f5456278f3cbc39e6e060f3
tree5f79237440dc2e3c47ef40f8d454d55054ea40f1
parent8211ca658728d03ba331de0276950289e52a1b0f
ARM: sync sched_clock() state on suspend

Ensure that the software state for sched_clock() is updated at the
point of suspend so that we avoid losing ticks since the last update.

This prevents the platform dependent possibility that sched_clock()
may appear to go backwards across a suspend/resume cycle.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/sched_clock.c