Fix CONFIG_MAX_CPU set to 1 CPU build problem
There are some function dependancies that didn't work when MAX_CPU was set to 1 and the build would fail. Change-Id: I033a42056f7b48a40316e03772ed89ad9cb013fe Signed-off-by: Marc Jones <marc.jones@se-eng.com> Reviewed-on: http://review.coreboot.org/1819 Reviewed-by: Ronald G. Minnich <rminnich@gmail.com> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
000bf83c93
commit
455f4b4328
|
@ -513,12 +513,14 @@ static void intel_cores_init(device_t cpu)
|
||||||
cpu->path.apic.apic_id,
|
cpu->path.apic.apic_id,
|
||||||
new->path.apic.apic_id);
|
new->path.apic.apic_id);
|
||||||
|
|
||||||
|
#if CONFIG_SMP && CONFIG_MAX_CPUS > 1
|
||||||
/* Start the new cpu */
|
/* Start the new cpu */
|
||||||
if (!start_cpu(new)) {
|
if (!start_cpu(new)) {
|
||||||
/* Record the error in cpu? */
|
/* Record the error in cpu? */
|
||||||
printk(BIOS_ERR, "CPU %u would not start!\n",
|
printk(BIOS_ERR, "CPU %u would not start!\n",
|
||||||
new->path.apic.apic_id);
|
new->path.apic.apic_id);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue