From: Eric B Munson Date: Thu, 23 Jun 2011 20:34:37 +0000 (-0400) Subject: events: Add note to update_event_times comment about holding ctx->lock X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b7526f0ca6dc68f57ca467ce503151b1d476a3e4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git events: Add note to update_event_times comment about holding ctx->lock Signed-off-by: Eric B Munson Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1308861279-15216-1-git-send-email-emunson@mgebm.net Signed-off-by: Ingo Molnar --- diff --git a/kernel/events/core.c b/kernel/events/core.c index e4aee519572d..2293e0b084a9 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -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) {