From 01dfdc5369de3899731982a015ce708184552ac6 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Fri, 8 Apr 2016 21:28:11 -0500 Subject: cpu/x86/tsc: compile same code for all stages The delay_tsc.c code took different paths depending __PRE_RAM__ being defined or not. Also, 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. Lastly, handle apollolake fallout now that init_timer() is not needed in placeholders.c. Change-Id: Ia769fa71e2c9d8b11201a3896d117097f2cb7c56 Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/14301 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh Reviewed-by: Andrey Petrov --- src/soc/intel/apollolake/placeholders.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/soc') diff --git a/src/soc/intel/apollolake/placeholders.c b/src/soc/intel/apollolake/placeholders.c index 808bd5490b..9e58c11dd0 100644 --- a/src/soc/intel/apollolake/placeholders.c +++ b/src/soc/intel/apollolake/placeholders.c @@ -6,9 +6,3 @@ void southbridge_smi_set_eos(void) { } - -#if ENV_BOOTBLOCK -void init_timer(void) -{ -} -#endif -- cgit v1.2.3