From b0b12dd1d6f474aa1890c42e86597963a6d92216 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Sat, 29 May 2021 07:08:36 +0200 Subject: drivers/amd/agesa/romstage.c: Remove lapic_id check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The APs don't execute this codepath but ap_romstage_main(). Change-Id: If884001bc8c5363efbbf00422a9a700896318f7b Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/55065 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki Reviewed-by: Angel Pons --- src/drivers/amd/agesa/romstage.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/drivers/amd/agesa') diff --git a/src/drivers/amd/agesa/romstage.c b/src/drivers/amd/agesa/romstage.c index b8f38ce4ee..871054b92c 100644 --- a/src/drivers/amd/agesa/romstage.c +++ b/src/drivers/amd/agesa/romstage.c @@ -36,22 +36,18 @@ static void romstage_main(void) struct postcar_frame pcf; struct sysinfo romstage_state; struct sysinfo *cb = &romstage_state; - unsigned int initial_apic_id = initial_lapicid(); int cbmem_initted = 0; fill_sysinfo(cb); - if (initial_apic_id == 0) { + timestamp_add_now(TS_START_ROMSTAGE); - timestamp_add_now(TS_START_ROMSTAGE); + board_BeforeAgesa(cb); - board_BeforeAgesa(cb); - - console_init(); - } + console_init(); printk(BIOS_DEBUG, "APIC %02u: CPU Family_Model = %08x\n", - initial_apic_id, cpuid_eax(1)); + initial_lapicid(), cpuid_eax(1)); set_ap_entry_ptr(ap_romstage_main); -- cgit v1.2.3