drivers: clocksource: add CPU PM notifier for ARM architected timer
authorSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Fri, 23 Aug 2013 14:53:15 +0000 (15:53 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 5 May 2014 23:10:04 +0000 (16:10 -0700)
commitd9105606cab52d214c7670e7d85834c6f699f817
tree124e505d11fadd8c6153e83673203178a26e6881
parent5d8ac19a525254c044220fc84e50923a11c382a0
drivers: clocksource: add CPU PM notifier for ARM architected timer

Few control settings done in architected timer as part of initialisation
can be lost when CPU enters deeper power states. They need to be
restored when the CPU is (warm)reset again.

This patch adds CPU PM notifiers to save the counter control register
when entering low power modes and restore it when CPU exits low power.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
(cherry picked from commit 346e7480f1d4740b3d798da60f83f087ea6488b4)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
drivers/clocksource/arm_arch_timer.c