Commit f74642d8 authored by Shivank Garg's avatar Shivank Garg Committed by Ingo Molnar
Browse files

x86/cpu: Remove redundant CONFIG_NUMA guard around numa_add_cpu()



Remove unnecessary CONFIG_NUMA #ifdef around numa_add_cpu() since the
function is already properly handled in <asm/numa.h> for both NUMA and
non-NUMA configurations. For !CONFIG_NUMA builds, numa_add_cpu() is
defined as an empty function.

Simplify the code without any functionality change.

Testing: Build CONFIG_NUMA=n

Signed-off-by: default avatarShivank Garg <shivankg@amd.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20241112072346.428623-1-shivankg@amd.com
parent 110213b8
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1902,9 +1902,7 @@ static void identify_cpu(struct cpuinfo_x86 *c)
	/* Init Machine Check Exception if available. */
	mcheck_cpu_init(c);

#ifdef CONFIG_NUMA
	numa_add_cpu(smp_processor_id());
#endif
}

/*