Re: [PATCH v2 10/21] arm64: percpu: Specialise set_my_cpu_offset() for the primary CPU

From: Linus Walleij

Date: Wed Sep 30 2026 - 19:20:23 EST


On Fri, Sep 18, 2026 at 6:14 PM Will Deacon <will@xxxxxxxxxx> wrote:

> set_my_cpu_offset() is only called from smp_prepare_boot_cpu() which
> runs once on the primary CPU and before alternatives have been applied.
>
> Rework the function so that it operates only on the boot CPU offset,
> drop the unused alternative code sequence and internalise it into smp.c
> alongside its only caller.
>
> Signed-off-by: Will Deacon <will@xxxxxxxxxx>

Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>

Yours,
Linus Walleij