diff options
author | Chengming Zhou <[email protected]> | 2022-03-29 23:45:20 +0800 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2022-04-05 09:59:44 +0200 |
commit | a0827713e298d021d3c79ae7423aea408f3f7c3a (patch) | |
tree | 2a98988caf2ee4685ba5dedb0805bfa3acc4e561 /kernel/entry/common.c | |
parent | e590928de7547454469693da9bc7ffd562e54b7e (diff) |
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 <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'kernel/entry/common.c')
0 files changed, 0 insertions, 0 deletions