Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147249
b: refs/heads/master
c: 60b3df9
h: refs/heads/master
i:
  147247: 950a40f
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Apr 6, 2009
1 parent 3b8e3dc commit 68bdf74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 755642322aa66fbc5421a35fd3e1733f73e20083
refs/heads/master: 60b3df9c1e24a18aabb412da9905208c5f04ebea
4 changes: 4 additions & 0 deletions trunk/arch/x86/kernel/cpu/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ static u64 pmc_amd_save_disable_all(void)

enabled = cpuc->enabled;
cpuc->enabled = 0;
/*
* ensure we write the disable before we start disabling the
* counters proper, so that pcm_amd_enable() does the right thing.
*/
barrier();

for (idx = 0; idx < nr_counters_generic; idx++) {
Expand Down

0 comments on commit 68bdf74

Please sign in to comment.