Re: [PATCH v5 7/7] s390/percpu: Provide arch_this_cpu_write() implementation

From: Alexander Gordeev

Date: Tue Jun 02 2026 - 07:40:57 EST


On Tue, May 26, 2026 at 07:57:02AM +0200, Heiko Carstens wrote:
> Provide an s390 specific implementation of arch_this_cpu_write()
> instead of the generic variant. The generic variant uses a quite
> expensive raw_local_irq_save() / raw_local_irq_restore() pair.
>
> Get rid of this 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).
>
> Signed-off-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
> ---
> arch/s390/include/asm/percpu.h | 30 ++++++++++++++++++++++++++++++
> 1 file changed, 30 insertions(+)

Acked-by: Alexander Gordeev <agordeev@xxxxxxxxxxxxx>