Skip to content

Commit d54cb7d

Browse files
gerald-schaeferhcahca
authored andcommitted
s390/vtime: fix increased steal time accounting
Commit 152e9b8 ("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: 152e9b8 ("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>
1 parent c79f01b commit d54cb7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/s390/kernel/vtime.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ void vtime_flush(struct task_struct *tsk)
214214
avg_steal = S390_lowcore.avg_steal_timer / 2;
215215
if ((s64) steal > 0) {
216216
S390_lowcore.steal_timer = 0;
217-
account_steal_time(steal);
217+
account_steal_time(cputime_to_nsecs(steal));
218218
avg_steal += steal;
219219
}
220220
S390_lowcore.avg_steal_timer = avg_steal;

0 commit comments

Comments
 (0)