]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cgroup/rstat: add force idle show helper
authorChen Ridong <chenridong@huawei.com>
Thu, 4 Jul 2024 14:01:19 +0000 (14:01 +0000)
committerTejun Heo <tj@kernel.org>
Fri, 5 Jul 2024 18:32:08 +0000 (08:32 -1000)
commitb824766504e49f3fdcbb8c722e70996a78c3636e
tree34fb08f86e4d03db6fcea66d0c46157557383301
parent1028f391d5f9d4248e2f49193e6de2516ad630f8
cgroup/rstat: add force idle show helper

In the function cgroup_base_stat_cputime_show, there are five
instances of #ifdef, which makes the code not concise.
To address this, add the function cgroup_force_idle_show
to make the code more succinct.

Signed-off-by: Chen Ridong <chenridong@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/rstat.c