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

Linus Walleij linusw at kernel.org
Wed Sep 30 14:02:46 PDT 2026


On Fri, Sep 18, 2026 at 6:14 PM Will Deacon <will at kernel.org> 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 at kernel.org>

Reviewed-by: Linus Walleij <linusw at kernel.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list