Commit 3019e8eb authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds
Browse files

[PATCH] x86_64: Minor clean up to CPU setup - use smp_processor_id instead of custom hack



Does not change any semantics because numa_add_cpu checks for CPU 0 anyways.

Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 61b1b2d0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1081,8 +1081,7 @@ void __cpuinit identify_cpu(struct cpuinfo_x86 *c)
	else
		mtrr_ap_init();
#ifdef CONFIG_NUMA
	if (c != &boot_cpu_data)
		numa_add_cpu(c - cpu_data);
	numa_add_cpu(smp_processor_id());
#endif
}