Re: [PATCH 2/4] s390/percpu: Drop unused output register from arch_this_cpu_add()
From: Alexander Gordeev
Date: Mon Oct 12 2026 - 10:43:53 EST
On Mon, Oct 12, 2026 at 01:42:47PM +0200, Heiko Carstens wrote:
> The laa/laag instructions return the old memory content, but
> arch_this_cpu_add() does not need it. Instead of allocating a dedicated
> output register old__ just to discard the returned value, change the
> val__ constraint from "d" to "+&d" so it is used as input/output
> register.
>
> This reduces register pressure.
>
> Signed-off-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
> ---
> arch/s390/include/asm/percpu.h | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
Acked-by: Alexander Gordeev <agordeev@xxxxxxxxxxxxx>