]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Simplify __perf_event_sync_stat
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 20 Nov 2009 21:19:52 +0000 (22:19 +0100)
committerIngo Molnar <mingo@elte.hu>
Sat, 21 Nov 2009 13:11:39 +0000 (14:11 +0100)
commite74632262b7da4e4bc76ed00ddec4377d85f44dc
tree66aa74aee095f2031b7c79a3762e22ca2a765174
parentba9b7e488551d0b291d3a506867d27c7940b39e5
perf: Simplify __perf_event_sync_stat

Removes constraints from __perf_event_read() by leaving it with
a single callsite; this callsite had ctx->lock held, the other
one does not.

Removes some superfluous code from __perf_event_sync_stat().

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <20091120212508.918544317@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_event.c