diff options
| author | Kan Liang <[email protected]> | 2018-02-20 02:11:50 -0800 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2018-03-09 08:22:18 +0100 |
| commit | 82d71ed0277efc45360828af8c4e4d40e1b45352 (patch) | |
| tree | 20ae4204e2db11401885a18458f13059cc2b6838 /include/linux/overflow.h | |
| parent | f605cfca8c39ffa2b98c06d2b9f30ba64f1e54e3 (diff) | |
perf/x86/intel: Properly save/restore the PMU state in the NMI handler
The PMU is disabled in intel_pmu_handle_irq(), but cpuc->enabled is not updated
accordingly.
This is fine in current usage because no-one checks it - but fix it
for future code: for example, the drain_pebs() will be modified to
fix an auto-reload bug.
Properly save/restore the old PMU state.
Signed-off-by: Kan Liang <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[email protected]>
Cc: [email protected]
Cc: kernel test robot <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions