diff options
author | Chengming Zhou <[email protected]> | 2022-08-26 00:41:09 +0800 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2022-09-09 11:08:33 +0200 |
commit | 57899a6610e67ba26fa3251ebbef4a5ed21efc5d (patch) | |
tree | cd4fe1689b8e0f4001966dba898bd9e809a86152 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 52b1364ba0b105122d6de0e719b36db705011ac1 (diff) |
sched/psi: Consolidate cgroup_psi()
cgroup_psi() can't return psi_group for root cgroup, so we have many
open code "psi = cgroup_ino(cgrp) == 1 ? &psi_system : cgrp->psi".
This patch move cgroup_psi() definition to <linux/psi.h>, in which
we can return psi_system for root cgroup, so can handle all cgroups.
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 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions