File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -882,6 +882,19 @@ static void __init print_unknown_bootoptions(void)
882
882
memblock_free (unknown_options , len );
883
883
}
884
884
885
+ static void __init early_numa_node_init (void )
886
+ {
887
+ #ifdef CONFIG_USE_PERCPU_NUMA_NODE_ID
888
+ #ifndef cpu_to_node
889
+ int cpu ;
890
+
891
+ /* The early_cpu_to_node() should be ready here. */
892
+ for_each_possible_cpu (cpu )
893
+ set_cpu_numa_node (cpu , early_cpu_to_node (cpu ));
894
+ #endif
895
+ #endif
896
+ }
897
+
885
898
asmlinkage __visible __init __no_sanitize_address __noreturn __no_stack_protector
886
899
void start_kernel (void )
887
900
{
@@ -912,6 +925,7 @@ void start_kernel(void)
912
925
setup_nr_cpu_ids ();
913
926
setup_per_cpu_areas ();
914
927
smp_prepare_boot_cpu (); /* arch-specific boot-cpu hooks */
928
+ early_numa_node_init ();
915
929
boot_cpu_hotplug_init ();
916
930
917
931
pr_notice ("Kernel command line: %s\n" , saved_command_line );
You can’t perform that action at this time.
0 commit comments