Commit 7defb0f8 authored by Frederic Weisbecker's avatar Frederic Weisbecker
Browse files

perf: Don't schedule out/in pinned events on task tick

We don't need to schedule in/out pinned events on task tick,
now that pinned and flexible groups can be scheduled separately.
Signed-off-by: default avatarFrederic Weisbecker <>
Cc: Peter Zijlstra <>
Cc: Paul Mackerras <>
Cc: Ingo Molnar <>
Cc: Arnaldo Carvalho de Melo <>
parent 5b0311e1
......@@ -1525,17 +1525,17 @@ void perf_event_task_tick(struct task_struct *curr)
if (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);
if (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,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment