diff options
author | Muhammad Adeel <Muhammad.Adeel@ibm.com> | 2025-02-07 14:24:32 +0000 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2025-02-07 11:02:17 -1000 |
commit | db5fd3cf8bf41b84b577b8ad5234ea95f327c9be (patch) | |
tree | 8b03ac5eac8e1b42a8c4bbf928175c1dfad11abb /kernel | |
parent | fd079124112c6e11c1bca2e7c71470a2d60bc363 (diff) |
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/cgroup/rstat.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/cgroup/rstat.c b/kernel/cgroup/rstat.c index 5877974ece92..aac91466279f 100644 --- a/kernel/cgroup/rstat.c +++ b/kernel/cgroup/rstat.c @@ -590,7 +590,6 @@ static void root_cgroup_cputime(struct cgroup_base_stat *bstat) cputime->sum_exec_runtime += user; cputime->sum_exec_runtime += sys; - cputime->sum_exec_runtime += cpustat[CPUTIME_STEAL]; #ifdef CONFIG_SCHED_CORE bstat->forceidle_sum += cpustat[CPUTIME_FORCEIDLE]; |