Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191096
b: refs/heads/master
c: 984763c
h: refs/heads/master
v: v3
  • Loading branch information
Robert Richter authored and Ingo Molnar committed Mar 17, 2010
1 parent ebb50ef commit 2f16300
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 5cc718b9dad682329a60e73547c6e708faa5bbe4
refs/heads/master: 984763cb90d4b5444baa0c3e43feff7926bf1834
5 changes: 3 additions & 2 deletions trunk/arch/x86/kernel/cpu/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,9 @@ static int __hw_perf_event_init(struct perf_event *event)
hwc->last_tag = ~0ULL;

/* Processor specifics */
if (x86_pmu.hw_config(attr, hwc))
return -EOPNOTSUPP;
err = x86_pmu.hw_config(attr, hwc);
if (err)
return err;

if (!hwc->sample_period) {
hwc->sample_period = x86_pmu.max_period;
Expand Down

0 comments on commit 2f16300

Please sign in to comment.