Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188277
b: refs/heads/master
c: 45e16a6
h: refs/heads/master
i:
  188275: b214cde
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Mar 11, 2010
1 parent 72b9394 commit 5366d8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 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: 85cfabbcd10f8d112feee6e2ec64ee78033b6d3c
refs/heads/master: 45e16a6834b6af098702e5ea6c9a40de42ff77d8
12 changes: 3 additions & 9 deletions trunk/arch/x86/kernel/cpu/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,6 @@ void hw_perf_enable(void)
* step2: reprogram moved events into new counters
*/
for (i = 0; i < n_running; i++) {

event = cpuc->event_list[i];
hwc = &event->hw;

Expand All @@ -826,21 +825,16 @@ void hw_perf_enable(void)
continue;

x86_pmu_stop(event);

hwc->idx = -1;
}

for (i = 0; i < cpuc->n_events; i++) {

event = cpuc->event_list[i];
hwc = &event->hw;

if (i < n_running &&
match_prev_assignment(hwc, cpuc, i))
continue;

if (hwc->idx == -1)
if (!match_prev_assignment(hwc, cpuc, i))
x86_assign_hw_event(event, cpuc, i);
else if (i < n_running)
continue;

x86_pmu_start(event);
}
Expand Down

0 comments on commit 5366d8a

Please sign in to comment.