Re: [PATCH v5 6/7] s390/percpu: Provide arch_this_cpu_read() implementation
From: Alexander Gordeev
Date: Tue Jun 02 2026 - 07:47:28 EST
On Tue, May 26, 2026 at 07:57:01AM +0200, Heiko Carstens wrote:
> 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.
>
> Signed-off-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
> ---
> arch/s390/include/asm/percpu.h | 31 +++++++++++++++++++++++++++++++
> 1 file changed, 31 insertions(+)
Acked-by: Alexander Gordeev <agordeev@xxxxxxxxxxxxx>