]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
s390/vtime: Fix virtual timer forwarding
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 18 Feb 2026 14:20:05 +0000 (15:20 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 25 Feb 2026 15:46:07 +0000 (16:46 +0100)
commitdbc0fb35679ed5d0adecf7d02137ac2c77244b3b
treef9c35898b9202997333f32d898c518b544d5c8dc
parent0d785e2c324c90662baa4fe07a0d02233ff92824
s390/vtime: Fix virtual timer forwarding

Since delayed accounting of system time [1] the virtual timer is
forwarded by do_account_vtime() but also vtime_account_kernel(),
vtime_account_softirq(), and vtime_account_hardirq(). This leads
to double accounting of system, guest, softirq, and hardirq time.

Remove accounting from the vtime_account*() family to restore old behavior.

There is only one user of the vtimer interface, which might explain
why nobody noticed this so far.

Fixes: b7394a5f4ce9 ("sched/cputime, s390: Implement delayed accounting of system time") [1]
Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/vtime.c