perf: Simplify perf_event_exit_task_context()
authorPeter Zijlstra <peterz@infradead.org>
Mon, 5 May 2014 10:42:29 +0000 (12:42 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 7 May 2014 11:44:19 +0000 (13:44 +0200)
commit3a497f48637e2aac17eabb84a17f8ac5216028fc
tree9bbebe9cfd32e99b07f5924f7946d8dbe7c547a0
parent683ede43dd412c6cad0d23578a018409ac9c683e
perf: Simplify perf_event_exit_task_context()

Instead of jumping through hoops to make sure to find (and exit) each
event, do it the simple straight fwd way.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-tij931199thfkys8vbnokdpf@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c