Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182387
b: refs/heads/master
c: 7defb0f
h: refs/heads/master
i:
  182385: 7b6e197
  182383: a565cac
v: v3
  • Loading branch information
Frederic Weisbecker committed Jan 17, 2010
1 parent 931fa5f commit 3d0acc7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 5b0311e1f2464547fc6f17a82d7ea2538c8c7a70
refs/heads/master: 7defb0f879bbcfe29e3c6f29d685d4f29b7a0700
8 changes: 4 additions & 4 deletions trunk/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1525,17 +1525,17 @@ void perf_event_task_tick(struct task_struct *curr)
if (ctx)
perf_ctx_adjust_freq(ctx);

cpu_ctx_sched_out(cpuctx, EVENT_ALL);
cpu_ctx_sched_out(cpuctx, EVENT_FLEXIBLE);
if (ctx)
task_ctx_sched_out(ctx, EVENT_ALL);
task_ctx_sched_out(ctx, EVENT_FLEXIBLE);

rotate_ctx(&cpuctx->ctx);
if (ctx)
rotate_ctx(ctx);

cpu_ctx_sched_in(cpuctx, EVENT_ALL);
cpu_ctx_sched_in(cpuctx, EVENT_FLEXIBLE);
if (ctx)
task_ctx_sched_in(curr, EVENT_ALL);
task_ctx_sched_in(curr, EVENT_FLEXIBLE);
}

static int event_enable_on_exec(struct perf_event *event,
Expand Down

0 comments on commit 3d0acc7

Please sign in to comment.