Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147456
b: refs/heads/master
c: 1c80f4b
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed May 15, 2009
1 parent cada1d8 commit b817492
Show file tree
Hide file tree
Showing 2 changed files with 6 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: a4016a79fcbd139e7378944c0d86a39fdbc70ecc
refs/heads/master: 1c80f4b598d9b075a2a0be694e28be93a6702bcc
5 changes: 5 additions & 0 deletions trunk/arch/x86/kernel/cpu/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,11 @@ x86_perf_counter_set_period(struct perf_counter *counter,
left += period;
atomic64_set(&hwc->period_left, left);
}
/*
* Quirk: certain CPUs dont like it if just 1 event is left:
*/
if (unlikely(left < 2))
left = 2;

per_cpu(prev_left[idx], smp_processor_id()) = left;

Expand Down

0 comments on commit b817492

Please sign in to comment.