perf_events: Move code around to prepare for cgroup
authorStephane Eranian <eranian@google.com>
Mon, 3 Jan 2011 16:20:01 +0000 (18:20 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 7 Jan 2011 14:08:50 +0000 (15:08 +0100)
commit0b3fcf178deefd7b64154c2c0760a2c63df0b74f
treeb84509c9ac5935ac41f6fc9c444bc406cd2c54d8
parent23a2f3ab46596d9fd0b0e592d2101bea90970594
perf_events: Move code around to prepare for cgroup

In particular this patch move perf_event_exit_task() before
cgroup_exit() to allow for cgroup support. The cgroup_exit()
function detaches the cgroups attached to a task.

Other movements include hoisting some definitions and inlines
at the top of perf_event.c

Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <4d22058b.cdace30a.4657.ffff95b1@mx.google.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/exit.c
kernel/perf_event.c