perf: Use task_ctx_sched_out()
authorPeter Zijlstra <peterz@infradead.org>
Fri, 8 Jan 2016 09:02:37 +0000 (10:02 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 21 Jan 2016 17:54:21 +0000 (18:54 +0100)
commit8833d0e286c12fd4456089a7a553faf4921e4b08
tree809fb947ba3fed62eace3efc5d3dcdf83daad8dc
parent3e349507d12de93b08b0aa814fc2aa0dee91c5ba
perf: Use task_ctx_sched_out()

We have a function that does exactly what we want here, use it. This
reduces the amount of cpuctx->task_ctx muckery.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c