Commit f66efdaf authored by Badari Pulavarty's avatar Badari Pulavarty Committed by Linus Torvalds

[PATCH] x86_64: numa_add_cpu() fix

Problem is with "c - cpu_data" arthimetic.  "c" could be "boot_cpu_data" or
"cpu_data".
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 27e97ffc
......@@ -917,7 +917,8 @@ void __init identify_cpu(struct cpuinfo_x86 *c)
mcheck_init(c);
#endif
#ifdef CONFIG_NUMA
numa_add_cpu(c - cpu_data);
if (c != &boot_cpu_data)
numa_add_cpu(c - cpu_data);
#endif
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment