Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361360
b: refs/heads/master
c: 2a6e06b
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Mar 17, 2013
1 parent da7c810 commit 8aabf2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 08637024ab77f7defff1627cc8aedc2c6679ad8a
refs/heads/master: 2a6e06b2aed6995af401dcd4feb5e79a0c7ea554
4 changes: 3 additions & 1 deletion trunk/arch/x86/kernel/cpu/perf_event_intel_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,8 +732,10 @@ void intel_ds_init(void)

void perf_restore_debug_store(void)
{
struct debug_store *ds = __this_cpu_read(cpu_hw_events.ds);

if (!x86_pmu.bts && !x86_pmu.pebs)
return;

init_debug_store_on_cpu(smp_processor_id());
wrmsrl(MSR_IA32_DS_AREA, (unsigned long)ds);
}

0 comments on commit 8aabf2f

Please sign in to comment.