Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
user avatar
Josh Don authored
commit fcdb1eda

 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: default avatarJosh Don <joshdon@google.com>
Fixes: 1fcf54de

 ("sched/core: add forced idle accounting for cgroups")
Cc: stable@vger.kernel.org # v6.0+
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
53244494
Forked from BeagleBoard.org / BB Imager
Source project has a limited visibility.
Name Last commit Last update