Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218632
b: refs/heads/master
c: 5553be2
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Oct 22, 2010
1 parent 7148736 commit fdd58c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 65af94baca56beb3514d6cfce782634db9cf676d
refs/heads/master: 5553be2620ac901c21a25657bd5b59f73254e6d5
9 changes: 5 additions & 4 deletions trunk/arch/x86/kernel/cpu/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,12 +497,13 @@ static int x86_pmu_hw_config(struct perf_event *event)
int precise = 0;

/* Support for constant skid */
if (x86_pmu.pebs)
if (x86_pmu.pebs) {
precise++;

/* Support for IP fixup */
if (x86_pmu.lbr_nr)
precise++;
/* Support for IP fixup */
if (x86_pmu.lbr_nr)
precise++;
}

if (event->attr.precise_ip > precise)
return -EOPNOTSUPP;
Expand Down

0 comments on commit fdd58c4

Please sign in to comment.