Skip to content

Commit 40a1198

Browse files
RevySRMingcongBai
authored andcommitted
RISCV64: REVYOS: Revert "NUMA: early use of cpu_to_node() returns 0 instead of the correct node id"
This reverts commit f9899c0.
1 parent a4f475c commit 40a1198

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

init/main.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -879,19 +879,6 @@ static void __init print_unknown_bootoptions(void)
879879
memblock_free(unknown_options, len);
880880
}
881881

882-
static void __init early_numa_node_init(void)
883-
{
884-
#ifdef CONFIG_USE_PERCPU_NUMA_NODE_ID
885-
#ifndef cpu_to_node
886-
int cpu;
887-
888-
/* The early_cpu_to_node() should be ready here. */
889-
for_each_possible_cpu(cpu)
890-
set_cpu_numa_node(cpu, early_cpu_to_node(cpu));
891-
#endif
892-
#endif
893-
}
894-
895882
asmlinkage __visible __init __no_sanitize_address __noreturn __no_stack_protector
896883
void start_kernel(void)
897884
{
@@ -925,7 +912,6 @@ void start_kernel(void)
925912
setup_nr_cpu_ids();
926913
setup_per_cpu_areas();
927914
smp_prepare_boot_cpu(); /* arch-specific boot-cpu hooks */
928-
early_numa_node_init();
929915
boot_cpu_hotplug_init();
930916

931917
pr_notice("Kernel command line: %s\n", saved_command_line);

0 commit comments

Comments
 (0)