]> www.infradead.org Git - users/jedix/linux-maple.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)
committerTejun Heo <tj@kernel.org>
Fri, 7 Feb 2025 21:02:17 +0000 (11:02 -1000)
commitdb5fd3cf8bf41b84b577b8ad5234ea95f327c9be
tree8b03ac5eac8e1b42a8c4bbf928175c1dfad11abb
parentfd079124112c6e11c1bca2e7c71470a2d60bc363
cgroup: Remove steal time from usage_usec

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>
kernel/cgroup/rstat.c