aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorChengming Zhou <[email protected]>2022-08-25 16:41:10 +0000
committerPeter Zijlstra <[email protected]>2022-09-09 09:08:33 +0000
commitdc86aba751e2867244411adda1562f6664747019 (patch)
treea3da212be6c190b5585ee4f9761c4177ad4f19c6 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentsched/psi: Consolidate cgroup_psi() (diff)
downloadkernel-dc86aba751e2867244411adda1562f6664747019.tar.gz
kernel-dc86aba751e2867244411adda1562f6664747019.zip
sched/psi: Cache parent psi_group to speed up group iteration
We use iterate_groups() to iterate each level psi_group to update PSI stats, which is a very hot path. In current code, iterate_groups() have to use multiple branches and cgroup_parent() to get parent psi_group for each level, which is not very efficient. This patch cache parent psi_group in struct psi_group, only need to get psi_group of task itself first, then just use group->parent to iterate. Signed-off-by: Chengming Zhou <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Johannes Weiner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions