diff options
| -rw-r--r-- | arch/x86/kernel/cpu/perf_event_intel_ds.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_intel_ds.c b/arch/x86/kernel/cpu/perf_event_intel_ds.c index 0e9bdd3cb01e..b05a575d56f4 100644 --- a/arch/x86/kernel/cpu/perf_event_intel_ds.c +++ b/arch/x86/kernel/cpu/perf_event_intel_ds.c | |||
| @@ -732,8 +732,10 @@ void intel_ds_init(void) | |||
| 732 | 732 | ||
| 733 | void perf_restore_debug_store(void) | 733 | void perf_restore_debug_store(void) |
| 734 | { | 734 | { |
| 735 | struct debug_store *ds = __this_cpu_read(cpu_hw_events.ds); | ||
| 736 | |||
| 735 | if (!x86_pmu.bts && !x86_pmu.pebs) | 737 | if (!x86_pmu.bts && !x86_pmu.pebs) |
| 736 | return; | 738 | return; |
| 737 | 739 | ||
| 738 | init_debug_store_on_cpu(smp_processor_id()); | 740 | wrmsrl(MSR_IA32_DS_AREA, (unsigned long)ds); |
| 739 | } | 741 | } |
