linux-stable/include/linux/perf
Eric Lin e9a023f2b7 drivers/perf: riscv_pmu: Add riscv pmu pm notifier
Currently, when the CPU is doing suspend to ram, we don't
save pmu counter register and its content will be lost.

To ensure perf profiling is not affected by suspend to ram,
this patch is based on arm_pmu CPU_PM notifier and implements riscv
pmu pm notifier. In the pm notifier, we stop the counter and update
the counter value before suspend and start the counter after resume.

Signed-off-by: Eric Lin <eric.lin@sifive.com>
Link: https://lore.kernel.org/r/20220705091920.27432-1-eric.lin@sifive.com
Signed-off-by: Will Deacon <will@kernel.org>
2022-07-06 10:57:30 +01:00
..
arm_pmu.h drivers/perf: arm_pmu: Handle 47 bit counters 2022-03-08 13:32:48 +00:00
riscv_pmu.h drivers/perf: riscv_pmu: Add riscv pmu pm notifier 2022-07-06 10:57:30 +01:00