• Peter Zijlstra's avatar
    perf: Clean up sync_child_event() · 8ba289b8
    Peter Zijlstra authored
    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: default avatarPeter 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: default avatarIngo Molnar <mingo@kernel.org>
    8ba289b8
core.c 220 KB