]> git.baikalelectronics.ru Git - kernel.git/commit
perf, x86: Properly account n_added
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Sat, 6 Mar 2010 12:49:56 +0000 (13:49 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 10 Mar 2010 12:22:32 +0000 (13:22 +0100)
commit88a796ad5e4d3b0b3a30a5b5481b88c6498b9ed0
treecb5f39d8cb7e7160b81f9a74c7eb4707cfbf10f7
parent90829bfab89621086c668c958bd4510a44da367b
perf, x86: Properly account n_added

Make sure n_added is properly accounted so that we can rely on the value
to reflect the number of added counters. This is needed if its going to
be used for more than a boolean check.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: paulus@samba.org
Cc: eranian@google.com
Cc: robert.richter@amd.com
Cc: fweisbec@gmail.com
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event.c