ARM: perf: save/restore pmu registers in pm notifier
authorSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Tue, 25 Sep 2012 17:40:12 +0000 (18:40 +0100)
committerJon Medhurst <tixy@linaro.org>
Wed, 17 Jul 2013 10:12:04 +0000 (11:12 +0100)
commit2443228c4c77ceb1193d8cf318118005a8c5fa5a
tree2d9f1ebc91f8db8b8a5a0248e200e8d7294a79a2
parent8bfe4a20999615b0de1c32c1e4b3dab5595c2432
ARM: perf: save/restore pmu registers in pm notifier

This adds core support for saving and restoring CPU PMU registers
for suspend/resume support i.e. deeper C-states in cpuidle terms.
This patch adds support only to ARMv7 PMU registers save/restore.
It needs to be extended to xscale and ARMv6 if needed.

Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
arch/arm/include/asm/pmu.h
arch/arm/kernel/perf_event_cpu.c
arch/arm/kernel/perf_event_v7.c