Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156746
b: refs/heads/master
c: 970892a
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Aug 13, 2009
1 parent c998aab commit 7e59a20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 3dab77fb1bf89664bb1c9544607159dcab6f7d57
refs/heads/master: 970892a9031a5dc7217bd394fb9d89fa75a4a7bc
6 changes: 5 additions & 1 deletion trunk/kernel/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ counter_sched_out(struct perf_counter *counter,
return;

counter->state = PERF_COUNTER_STATE_INACTIVE;
if (counter->pending_disable) {
counter->pending_disable = 0;
counter->state = PERF_COUNTER_STATE_OFF;
}
counter->tstamp_stopped = ctx->time;
counter->pmu->disable(counter);
counter->oncpu = -1;
Expand Down Expand Up @@ -2343,7 +2347,7 @@ static void perf_pending_counter(struct perf_pending_entry *entry)

if (counter->pending_disable) {
counter->pending_disable = 0;
perf_counter_disable(counter);
__perf_counter_disable(counter);
}

if (counter->pending_wakeup) {
Expand Down

0 comments on commit 7e59a20

Please sign in to comment.