Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147424
b: refs/heads/master
c: b82914c
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed May 4, 2009
1 parent 26ac0b5 commit e7d4f6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: dab6f6a3401f596fe934f41fc5da3f401adfdfb1
refs/heads/master: b82914ce33146186d554b0f5c41e4e13693614ce
10 changes: 3 additions & 7 deletions trunk/kernel/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1069,18 +1069,14 @@ void perf_counter_task_tick(struct task_struct *curr, int cpu)
{
struct perf_cpu_context *cpuctx = &per_cpu(perf_cpu_context, cpu);
struct perf_counter_context *ctx = &curr->perf_counter_ctx;
const int rotate_percpu = 0;

if (rotate_percpu)
perf_counter_cpu_sched_out(cpuctx);
perf_counter_cpu_sched_out(cpuctx);
perf_counter_task_sched_out(curr, cpu);

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

if (rotate_percpu)
perf_counter_cpu_sched_in(cpuctx, cpu);
perf_counter_cpu_sched_in(cpuctx, cpu);
perf_counter_task_sched_in(curr, cpu);
}

Expand Down

0 comments on commit e7d4f6e

Please sign in to comment.