From b3587a60ab5ab7ec00b1632013de3ac8b0aabed6 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 2 Aug 2018 13:21:57 +0200 Subject: cpu/x86/lapic/apic_timer.c: Compile the same code for all stages timer_monotonic_get() was only compiled in a !__PRE_RAM__ environment. Clean up the code paths by employing CAR_GLOBAL for the global state which allows the same code to be used in all stages. Change-Id: I08fd1795508f76abdab1618585366bf9d06482ff Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/27801 Reviewed-by: Nico Huber Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/cpu/x86/lapic/Makefile.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cpu/x86/lapic/Makefile.inc') diff --git a/src/cpu/x86/lapic/Makefile.inc b/src/cpu/x86/lapic/Makefile.inc index e02dcdd3a2..9454f8f00a 100644 --- a/src/cpu/x86/lapic/Makefile.inc +++ b/src/cpu/x86/lapic/Makefile.inc @@ -3,6 +3,7 @@ ramstage-y += lapic_cpu_init.c ramstage-$(CONFIG_SMP) += secondary.S romstage-$(CONFIG_UDELAY_LAPIC) += apic_timer.c ramstage-$(CONFIG_UDELAY_LAPIC) += apic_timer.c +postcar-$(CONFIG_UDELAY_LAPIC) += apic_timer.c bootblock-y += boot_cpu.c verstage-y += boot_cpu.c romstage-y += boot_cpu.c -- cgit v1.2.3