]> git.baikalelectronics.ru Git - kernel.git/commit
s390/vtime: fix increased steal time accounting
authorGerald Schaefer <gerald.schaefer@linux.ibm.com>
Wed, 10 Mar 2021 13:23:37 +0000 (14:23 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 15 Mar 2021 18:09:25 +0000 (19:09 +0100)
commit8f68f57a0db1b16e6cd92391af75493634adee0c
tree12931e8b5fb45128fb296e411d952874884ad8af
parent40c42c831602b89e309627217e7a2491c7f6652f
s390/vtime: fix increased steal time accounting

Commit 6f3a43f7ff236 ("s390/vtime: steal time exponential moving average")
inadvertently changed the input value for account_steal_time() from
"cputime_to_nsecs(steal)" to just "steal", resulting in broken increased
steal time accounting.

Fix this by changing it back to "cputime_to_nsecs(steal)".

Fixes: 6f3a43f7ff236 ("s390/vtime: steal time exponential moving average")
Cc: <stable@vger.kernel.org> # 5.1
Reported-by: Sabine Forkel <sabine.forkel@de.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/vtime.c