On 21.05.2025 18:03, Oleksii Kurochko wrote: > Initialize cpu_{possible, online}_map by using smp_prepare_boot_cpu(). > > Drop DEFINE_PER_CPU(unsigned int, cpu_id) from stubs.c as this variable isn't > expected to be used in RISC-V at all. > > Move declaration of cpu_{possible,online}_map from stubs.c to smpboot.c > as now smpboot.c is now introduced. > Other defintions keep in stubs.c as they are not initialized and not needed, > at > the moment. > > Drop cpu_present_map as it is enough to have cpu_possible_map. Also, ask > linker to provide symbol for cpu_present_map as common code references it. > > Move call of set_processor_id(0) to smp_prepare_boot_cpu(). > > Signed-off-by: Oleksii Kurochko <oleksii.kuroc...@gmail.com>
Reviewed-by: Jan Beulich <jbeul...@suse.com>