perf: Clean up sync_child_event()
authorPeter Zijlstra <[email protected]>
Tue, 26 Jan 2016 12:06:56 +0000 (13:06 +0100)
committerIngo Molnar <[email protected]>
Fri, 29 Jan 2016 07:35:32 +0000 (08:35 +0100)
commit8ba289b8d4e4dbd1f971fbf0d2085e4776a4ba25
tree5f8ff9b816534dd1d553f0b6e12c0e80f28a9972
parentf47c02c0c8403963fbb8c3484e285727305d0f73
perf: Clean up sync_child_event()

sync_child_event() has outgrown its purpose, it does far too much.
Bring it back to its named purpose.

Rename __perf_event_exit_task() to perf_event_exit_event() to better
reflect what it does and move the event->state assignment under the
ctx->lock, like state changes ought to be.

Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
kernel/events/core.c