Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182454
b: refs/heads/master
c: 9717e6c
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Feb 4, 2010
1 parent d076591 commit 9a41e00
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: f24bb999d2b9f2950e5cac5b69bffedf73c24ea4
refs/heads/master: 9717e6cd3db22eade7dbae0fc9235c66325a7132
8 changes: 4 additions & 4 deletions trunk/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1573,12 +1573,8 @@ static void rotate_ctx(struct perf_event_context *ctx)
raw_spin_lock(&ctx->lock);

/* Rotate the first entry last of non-pinned groups */
perf_disable();

list_rotate_left(&ctx->flexible_groups);

perf_enable();

raw_spin_unlock(&ctx->lock);
}

Expand All @@ -1593,6 +1589,8 @@ void perf_event_task_tick(struct task_struct *curr)
cpuctx = &__get_cpu_var(perf_cpu_context);
ctx = curr->perf_event_ctxp;

perf_disable();

perf_ctx_adjust_freq(&cpuctx->ctx);
if (ctx)
perf_ctx_adjust_freq(ctx);
Expand All @@ -1608,6 +1606,8 @@ void perf_event_task_tick(struct task_struct *curr)
cpu_ctx_sched_in(cpuctx, EVENT_FLEXIBLE);
if (ctx)
task_ctx_sched_in(curr, EVENT_FLEXIBLE);

perf_enable();
}

static int event_enable_on_exec(struct perf_event *event,
Expand Down

0 comments on commit 9a41e00

Please sign in to comment.