cgroup/rstat: Fix forceidle time in cpu.stat
[ Upstream commit c4af66a9 ] The commit b8247665 ("cgroup/rstat: add force idle show helper") retrieves forceidle_time outside cgroup_rstat_lock for non-root cgroups which can be potentially inconsistent with other stats. Rather than reverting that commit, fix it in a way that retains the effort of cleaning up the ifdef-messes. Fixes: b8247665 ("cgroup/rstat: add force idle show helper") Signed-off-by:Abel Wu <wuyun.abel@bytedance.com> Signed-off-by:
Tejun Heo <tj@kernel.org> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading