]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/percpu: Provide arch_this_cpu_read() implementation
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 26 May 2026 05:57:01 +0000 (07:57 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 3 Jun 2026 13:32:47 +0000 (15:32 +0200)
commit9858c19a66386cb2553480643f2d4565993d1cd8
tree24483ceee1ec27829d198e20fa853a5e6367795b
parentee8cefbfb0718bfe1460cf2ba72722c51f6789eb
s390/percpu: Provide arch_this_cpu_read() implementation

Provide an s390 specific implementation of arch_this_cpu_read() instead
of the generic variant. The generic variant uses preempt_disable() /
preempt_enable() pair and READ_ONCE().

Get rid of the preempt_disable() / preempt_enable() pairs by providing an
own variant which makes use of the new percpu code section infrastructure.

With this the text size of the kernel image is reduced by ~1k
(defconfig). Also 87 generated preempt_schedule_notrace() function
calls within the kernel image (modules not counted) are removed.

Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/percpu.h