drop use of MAX_PHYSICAL_CPUS and MAX_CPUS where not needed
Change-Id: Idf875ddec417e627f1e72a6d834860e7fd324a50 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/760 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
committed by
Stefan Reinauer
parent
5e02bc6d7e
commit
67aa3d6b87
@@ -384,10 +384,8 @@ void secondary_cpu_init(void)
|
|||||||
{
|
{
|
||||||
atomic_inc(&active_cpus);
|
atomic_inc(&active_cpus);
|
||||||
#if CONFIG_SERIAL_CPU_INIT == 1
|
#if CONFIG_SERIAL_CPU_INIT == 1
|
||||||
#if CONFIG_MAX_CPUS>2
|
|
||||||
spin_lock(&start_cpu_lock);
|
spin_lock(&start_cpu_lock);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __SSE3__
|
#ifdef __SSE3__
|
||||||
/*
|
/*
|
||||||
@@ -401,9 +399,7 @@ void secondary_cpu_init(void)
|
|||||||
#endif
|
#endif
|
||||||
cpu_initialize();
|
cpu_initialize();
|
||||||
#if CONFIG_SERIAL_CPU_INIT == 1
|
#if CONFIG_SERIAL_CPU_INIT == 1
|
||||||
#if CONFIG_MAX_CPUS>2
|
|
||||||
spin_unlock(&start_cpu_lock);
|
spin_unlock(&start_cpu_lock);
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
atomic_dec(&active_cpus);
|
atomic_dec(&active_cpus);
|
||||||
@@ -440,9 +436,7 @@ static void start_other_cpus(struct bus *cpu_bus, device_t bsp_cpu)
|
|||||||
cpu->path.apic.apic_id);
|
cpu->path.apic.apic_id);
|
||||||
}
|
}
|
||||||
#if CONFIG_SERIAL_CPU_INIT == 1
|
#if CONFIG_SERIAL_CPU_INIT == 1
|
||||||
#if CONFIG_MAX_CPUS>2
|
|
||||||
udelay(10);
|
udelay(10);
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1 +1 @@
|
|||||||
ramstage-y += pgtbl.c
|
ramstage-$(CONFIG_CPU_AMD_MODEL_FXX) += pgtbl.c
|
||||||
|
Reference in New Issue
Block a user