perfcounters: release CPU context when exiting task counters
authorIngo Molnar <mingo@elte.hu>
Sun, 14 Dec 2008 22:20:36 +0000 (23:20 +0100)
committerIngo Molnar <mingo@elte.hu>
Sun, 14 Dec 2008 22:25:02 +0000 (23:25 +0100)
commit0cc0c027d4e028632933f1be2dc4cd730358183b
treed64e0a45f5db7b6369198a1265a343f49e92714b
parent029af8c753bb5a7432aa1ed38bf61fe2c2f66d17
perfcounters: release CPU context when exiting task counters

If counters are exiting via do_exit() not via filp close, then
the CPU context needs to be released - otherwise future percpu
counter creations might fail.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_counter.c