Commit ec4d831b authored by Bruce D. Elliott's avatar Bruce D. Elliott Committed by David S. Miller

[SPARC64]: Fix SMP boot failures.

parent 06d9c9cc
...@@ -688,6 +688,7 @@ static int __init topology_init(void) ...@@ -688,6 +688,7 @@ static int __init topology_init(void)
sparc64_cpus = kmalloc(NR_CPUS * sizeof(struct cpu), GFP_KERNEL); sparc64_cpus = kmalloc(NR_CPUS * sizeof(struct cpu), GFP_KERNEL);
if (!sparc64_cpus) if (!sparc64_cpus)
return -ENOMEM; return -ENOMEM;
memset(sparc64_cpus, 0, NR_CPUS * sizeof(struct cpu));
for (i = 0; i < NR_CPUS; i++) { for (i = 0; i < NR_CPUS; i++) {
if (cpu_possible(i)) if (cpu_possible(i))
register_cpu(&sparc64_cpus[i], i, NULL); register_cpu(&sparc64_cpus[i], i, NULL);
......
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