Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147471
b: refs/heads/master
c: d2517a4
h: refs/heads/master
i:
  147469: 4c8aa89
  147467: cb4689b
  147463: b51e829
  147455: cada1d8
v: v3
  • Loading branch information
Ingo Molnar committed May 17, 2009
1 parent c2e71d8 commit 8a61200
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 0203026b58b4299ba7281c0b4b417207c1f05d0e
refs/heads/master: d2517a49d55536b38c7a87e5289550cfedaa4dcc
3 changes: 3 additions & 0 deletions trunk/arch/x86/kernel/cpu/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ static int __hw_perf_counter_init(struct perf_counter *counter)
hwc->nmi = 1;
}

if (!hwc->irq_period)
hwc->irq_period = x86_pmu.max_period;

atomic64_set(&hwc->period_left,
min(x86_pmu.max_period, hwc->irq_period));

Expand Down

0 comments on commit 8a61200

Please sign in to comment.