mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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 <namhyung.kim@lge.com> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Link: http://lkml.kernel.org/r/1327021966-27688-2-git-send-email-namhyung.kim@lge.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
fd45c15f13
commit
46cd6a7f68
1 changed files with 1 additions and 1 deletions
|
@ -815,7 +815,7 @@ static void update_event_times(struct perf_event *event)
|
||||||
* here.
|
* here.
|
||||||
*/
|
*/
|
||||||
if (is_cgroup_event(event))
|
if (is_cgroup_event(event))
|
||||||
run_end = perf_event_time(event);
|
run_end = perf_cgroup_event_time(event);
|
||||||
else if (ctx->is_active)
|
else if (ctx->is_active)
|
||||||
run_end = ctx->time;
|
run_end = ctx->time;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue