]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cgroup: Remove steal time from usage_usec
authorMuhammad Adeel <Muhammad.Adeel@ibm.com>
Fri, 7 Feb 2025 14:24:32 +0000 (14:24 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 12:49:57 +0000 (13:49 +0100)
commit99354bc51c461ed9735a6eec92c067e85fa10014
tree3e2c293e9a76f8c72ed2f99556e6089a48b5a81e
parent4ff25f0b18d1d0174c105e4620428bcdc1213860
cgroup: Remove steal time from usage_usec

[ Upstream commit db5fd3cf8bf41b84b577b8ad5234ea95f327c9be ]

The CPU usage time is the time when user, system or both are using the CPU.
Steal time is the time when CPU is waiting to be run by the Hypervisor. It
should not be added to the CPU usage time, hence removing it from the
usage_usec entry.

Fixes: 936f2a70f2077 ("cgroup: add cpu.stat file to root cgroup")
Acked-by: Axel Busch <axel.busch@ibm.com>
Acked-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Muhammad Adeel <muhammad.adeel@ibm.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/cgroup/rstat.c