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)
committerAlex Shi <alex.shi@linaro.org>
Mon, 14 Apr 2014 13:19:20 +0000 (21:19 +0800)
commit3108498011104950a6753dcef3eda80d84932916
tree6c1db480e509e396a7e6fcaf505c277de346a47e
parentc2fd237d23007adf60014e778f17bb6c9991942c
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