perf: Factor out event accounting code to account_event()/__free_event()
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 23 Jul 2013 00:31:01 +0000 (02:31 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 30 Jul 2013 20:29:12 +0000 (22:29 +0200)
Gather all the event accounting code to a single place,
once all the prerequisites are completed. This simplifies
the refcounting.

Original-patch-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1374539466-4799-4-git-send-email-fweisbec@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c

Simple merge