Skip to content

Commit

Permalink
events: Add note to update_event_times comment about holding ctx->lock
Browse files Browse the repository at this point in the history
Signed-off-by: Eric B Munson <emunson@mgebm.net>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1308861279-15216-1-git-send-email-emunson@mgebm.net
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Eric B Munson authored and Ingo Molnar committed Jul 1, 2011
1 parent 28009ce commit b7526f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/events/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,7 @@ static u64 perf_event_time(struct perf_event *event)

/*
* Update the total_time_enabled and total_time_running fields for a event.
* The caller of this function needs to hold the ctx->lock.
*/
static void update_event_times(struct perf_event *event)
{
Expand Down

0 comments on commit b7526f0

Please sign in to comment.