]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Fix time locking
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 20 Nov 2009 21:19:54 +0000 (22:19 +0100)
committerIngo Molnar <mingo@elte.hu>
Sat, 21 Nov 2009 13:11:39 +0000 (14:11 +0100)
commit6dc3c102d57e4697147b8c36f2247a404e9e3aef
tree0b9dde7d4c4304eaa1b701897609b1918d72e0f3
parent972bc827c716914b290d5cf992daae4488853c1b
perf: Fix time locking

Most sites updating ctx->time and event times do so under
ctx->lock, make sure they all do.

This was made possible by removing the __perf_event_read() call
from __perf_event_sync_stat(), which already had this lock
taken.

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