diff options
author | Lorenzo Pieralisi <[email protected]> | 2016-02-23 18:22:39 +0000 |
---|---|---|
committer | Will Deacon <[email protected]> | 2016-02-26 14:37:06 +0000 |
commit | da4e4f18afe0f3729d68f3785c5802f786d36e34 (patch) | |
tree | 79bea24abaddb8f5c7ed32b763dbb182a5e072bb /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 94085fe570e7b87597d4695e6fa77d4256efd29e (diff) |
drivers/perf: arm_pmu: implement CPU_PM notifier
When a CPU is suspended (either through suspend-to-RAM or CPUidle),
its PMU registers content can be lost, which means that counters
registers values that were initialized on power down entry have to be
reprogrammed on power-up to make sure the counters set-up is preserved
(ie on power-up registers take the reset values on Cold or Warm reset,
which can be architecturally UNKNOWN).
To guarantee seamless profiling conditions across a core power down
this patch adds a CPU PM notifier to ARM pmus, that upon CPU PM
entry/exit from low-power states saves/restores the pmu registers
set-up (by using the ARM perf API), so that the power-down/up cycle does
not affect the perf behaviour (apart from a black-out period between
power-up/down CPU PM notifications that is unavoidable).
Cc: Will Deacon <[email protected]>
Cc: Sudeep Holla <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Cc: Mathieu Poirier <[email protected]>
Cc: Mark Rutland <[email protected]>
Acked-by: Ashwin Chaugule <[email protected]>
Acked-by: Kevin Hilman <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions