On 12.05.2025 14:00, Andrew Cooper wrote:
> Since commit 434596bbd44a ("x86/smpboot: Write the top-of-stack block in
> cpu_smpboot_alloc()"), smp_processor_id() is unconditionally usable on APs.
> Drop the global variable.
>
> Also drop the parameter from start_secondary(). It was introduced as unused
> in commit e9ac3bbccab0 ("Move initial stack-pointer adjustment into assembly
> bootstrap code.") in 2005. At the time, the caller was a shared codepath with
> __start_xen() with a parameter on the stack, but that never mattered for
> start_secondary() which ultimately reset_stack_and_jump()'s out of context.
>
> No functional change.
>
> Signed-off-by: Andrew Cooper <[email protected]>
Reviewed-by: Jan Beulich <[email protected]>