From 455f4b432835828e82531adf967b9c7d8fc812dc Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Mon, 12 Nov 2012 15:17:24 -0800 Subject: 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 Reviewed-on: http://review.coreboot.org/1819 Reviewed-by: Ronald G. Minnich Tested-by: build bot (Jenkins) --- src/cpu/intel/model_206ax/model_206ax_init.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cpu/intel/model_206ax') diff --git a/src/cpu/intel/model_206ax/model_206ax_init.c b/src/cpu/intel/model_206ax/model_206ax_init.c index f34c589852..64c32a0bc9 100644 --- a/src/cpu/intel/model_206ax/model_206ax_init.c +++ b/src/cpu/intel/model_206ax/model_206ax_init.c @@ -513,12 +513,14 @@ static void intel_cores_init(device_t cpu) cpu->path.apic.apic_id, new->path.apic.apic_id); +#if CONFIG_SMP && CONFIG_MAX_CPUS > 1 /* Start the new cpu */ if (!start_cpu(new)) { /* Record the error in cpu? */ printk(BIOS_ERR, "CPU %u would not start!\n", new->path.apic.apic_id); } +#endif } } -- cgit v1.2.3