Skip to content

Commit 46cd6a7

Browse files
Namhyung KimIngo Molnar
authored andcommitted
perf: Call perf_cgroup_event_time() directly
The perf_event_time() will call perf_cgroup_event_time() if @event is a cgroup event. Just do it directly and avoid the extra check.. Signed-off-by: Namhyung Kim <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent fd45c15 commit 46cd6a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/events/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ static void update_event_times(struct perf_event *event)
815815
* here.
816816
*/
817817
if (is_cgroup_event(event))
818-
run_end = perf_event_time(event);
818+
run_end = perf_cgroup_event_time(event);
819819
else if (ctx->is_active)
820820
run_end = ctx->time;
821821
else

0 commit comments

Comments
 (0)