Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191063
b: refs/heads/master
c: 2df202b
h: refs/heads/master
i:
  191061: 36891a6
  191059: a4cfcd7
  191055: 6a4f288
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Mar 10, 2010
1 parent a7500c7 commit b7f6ca0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 4807e3d5dc7bb7057dd6ca3abb09f3da2eb8c323
refs/heads/master: 2df202bf7520eaffcbfb07e45dfa3cfb0aeee2c0
7 changes: 4 additions & 3 deletions trunk/arch/x86/kernel/cpu/perf_event_intel_lbr.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static void intel_pmu_lbr_enable(struct perf_event *event)
if (!x86_pmu.lbr_nr)
return;

WARN_ON(cpuc->enabled);
WARN_ON_ONCE(cpuc->enabled);

/*
* Reset the LBR stack if this is the first LBR user or
Expand All @@ -93,9 +93,10 @@ static void intel_pmu_lbr_disable(struct perf_event *event)
return;

cpuc->lbr_users--;

BUG_ON(cpuc->lbr_users < 0);
WARN_ON(cpuc->enabled);

if (cpuc->enabled && !cpuc->lbr_users)
__intel_pmu_lbr_disable();
}

static void intel_pmu_lbr_enable_all(void)
Expand Down

0 comments on commit b7f6ca0

Please sign in to comment.