]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/vtime: Use __this_cpu_read() / get rid of READ_ONCE()
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 18 Feb 2026 14:20:10 +0000 (15:20 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 25 Feb 2026 15:46:07 +0000 (16:46 +0100)
commite282ccd308de7b2a65eb4596da8030c18b543071
tree5f92868b7a6c3cc340eae12bb1642c7f4be8a761
parentd8b5cf9c63143fae54a734c41e3bb55cf3f365c7
s390/vtime: Use __this_cpu_read() / get rid of READ_ONCE()

do_account_vtime() runs always with interrupts disabled, therefore use
__this_cpu_read() instead of this_cpu_read() to get rid of a pointless
preempt_disable() / preempt_enable() pair.

Also there are no concurrent writers to the cpu time accounting fields
in lowcore. Therefore get rid of READ_ONCE() usages.

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