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.
Signed-off-by: Aaron Durbin <email@example.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <firstname.lastname@example.org>
Reviewed-by: Andrey Petrov <email@example.com>
2 files changed