diff options
author | Peter Zijlstra <peterz@infradead.org> | 2013-03-14 10:48:39 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-03-18 10:18:08 +0100 |
commit | a8d7ad52a7befbde896276d05c75c90fed48b5bf (patch) | |
tree | 6db764ea0c8db826b18d37828a1a28d014f38d3d /kernel/sched | |
parent | e75c8b475e4b1da6bf5b412db9a2ecd7c44188a2 (diff) | |
download | kernel_goldelico_gta04-a8d7ad52a7befbde896276d05c75c90fed48b5bf.zip kernel_goldelico_gta04-a8d7ad52a7befbde896276d05c75c90fed48b5bf.tar.gz kernel_goldelico_gta04-a8d7ad52a7befbde896276d05c75c90fed48b5bf.tar.bz2 |
sched/tracing: Allow tracing the preemption decision on wakeup
Thomas noted that we do the wakeup preemption check after the
wakeup trace point, this means the tracepoint cannot test/report
this decision; which is rather important for latency sensitive
workloads. Therefore move the tracepoint after doing the
preemption check.
Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Paul Turner <pjt@google.com>
Cc: Mike Galbraith <efault@gmx.de>
Link: http://lkml.kernel.org/r/1363254519.26965.9.camel@laptop
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index b36635e..849deb9 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -1288,8 +1288,8 @@ static void ttwu_activate(struct rq *rq, struct task_struct *p, int en_flags) static void ttwu_do_wakeup(struct rq *rq, struct task_struct *p, int wake_flags) { - trace_sched_wakeup(p, true); check_preempt_curr(rq, p, wake_flags); + trace_sched_wakeup(p, true); p->state = TASK_RUNNING; #ifdef CONFIG_SMP |