diff options
author | Chengming Zhou <zhouchengming@bytedance.com> | 2022-03-29 23:45:20 +0800 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-04-05 09:59:44 +0200 |
commit | a0827713e298d021d3c79ae7423aea408f3f7c3a (patch) | |
tree | 2a98988caf2ee4685ba5dedb0805bfa3acc4e561 /kernel/audit_fsnotify.c | |
parent | e590928de7547454469693da9bc7ffd562e54b7e (diff) | |
download | linux-a0827713e298d021d3c79ae7423aea408f3f7c3a.tar.bz2 |
perf/core: Don't pass task around when ctx sched in
The current code pass task around for ctx_sched_in(), only
to get perf_cgroup of the task, then update the timestamp
of it and its ancestors and set them to active.
But we can use cpuctx->cgrp to get active perf_cgroup and
its ancestors since cpuctx->cgrp has been set before
ctx_sched_in().
This patch remove the task argument in ctx_sched_in()
and cleanup related code.
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220329154523.86438-2-zhouchengming@bytedance.com
Diffstat (limited to 'kernel/audit_fsnotify.c')
0 files changed, 0 insertions, 0 deletions