Commit b464fe72 authored by Abel Wu's avatar Abel Wu Committed by Carlos Llamas
Browse files

UPSTREAM: 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")
Change-Id: Idfe355016afe579d853c8c62dcc632ff3101f28d
Signed-off-by: default avatarAbel Wu <wuyun.abel@bytedance.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
(cherry picked from commit 35016776)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 0dcd826d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment