• Peter Zijlstra's avatar
    perf: Fix cgroup scheduling in perf_enable_on_exec() · 70a01657
    Peter Zijlstra authored
    There is a comment that states that perf_event_context_sched_in() will
    also switch in the cgroup events, I cannot find it does so. Therefore
    all the resulting logic goes out the window too.
    
    Clean that up.
    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>
    70a01657
core.c 219 KB