diff options
author | Josh Don <joshdon@google.com> | 2023-03-15 14:40:29 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-04-20 12:35:13 +0200 |
commit | 53244494bfcb9612b660f84c8c4f9b2282a766cd (patch) | |
tree | 766d8dbeee76214bea506c6346d7b3064249c287 /init | |
parent | 226f6410fd43a2671c6d5d9272da484a3d13c168 (diff) | |
download | linux-53244494bfcb9612b660f84c8c4f9b2282a766cd.tar.gz |
cgroup: fix display of forceidle time at root
commit fcdb1eda5302599045bb366e679cccb4216f3873 upstream. We need to reset forceidle_sum to 0 when reading from root, since the bstat we accumulate into is stack allocated. To make this more robust, just replace the existing cputime reset with a memset of the overall bstat. Signed-off-by: Josh Don <joshdon@google.com> Fixes: 1fcf54deb767 ("sched/core: add forced idle accounting for cgroups") Cc: stable@vger.kernel.org # v6.0+ Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions