Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169779
b: refs/heads/master
c: 1261a02
h: refs/heads/master
i:
  169777: a523256
  169775: c9dc392
v: v3
  • Loading branch information
Stephane Eranian authored and Ingo Molnar committed Nov 24, 2009
1 parent 24732bc commit 0556f61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: fcf1203a919c3a3d212c0ed01f5240fd592bf5ae
refs/heads/master: 1261a02a0c0ab8e643125705f0d1d83e5090e4d1
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/cpu/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -2229,10 +2229,10 @@ validate_event(struct cpu_hw_events *cpuc, struct perf_event *event)
{
struct hw_perf_event fake_event = event->hw;

if (event->pmu != &pmu)
if (event->pmu && event->pmu != &pmu)
return 0;

return x86_schedule_event(cpuc, &fake_event);
return x86_schedule_event(cpuc, &fake_event) >= 0;
}

static int validate_group(struct perf_event *event)
Expand Down

0 comments on commit 0556f61

Please sign in to comment.