Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157206
b: refs/heads/master
c: eced1df
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Aug 29, 2009
1 parent e7cda81 commit 4c355b9
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 6bb56347f5162d1a7cb1dc461023360781ecd4c0
refs/heads/master: eced1dfcfcf6b0a35e925d73916a9d8e36ab5457
1 change: 1 addition & 0 deletions trunk/kernel/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -4066,6 +4066,7 @@ perf_counter_alloc(struct perf_counter_attr *attr,
hwc->sample_period = attr->sample_period;
if (attr->freq && attr->sample_freq)
hwc->sample_period = 1;
hwc->last_period = hwc->sample_period;

atomic64_set(&hwc->period_left, hwc->sample_period);

Expand Down

0 comments on commit 4c355b9

Please sign in to comment.