From 1f04e94b7915ce599e49a71fd38cb72523c9c887 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Tue, 12 May 2015 16:48:31 -0500 Subject: x86: expose tsc's timer_monotonic_get() in SMM The implementation of timer_monotonic_get() for the tsc module was being guarded from SMM. Allow this to be linked into SMM as the generic spi flash driver now needs this support which can be included in SMM. Change-Id: I3909edecac8de117922c4ea6c53e6e561f6f435b Signed-off-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/10187 Reviewed-by: Stefan Reinauer Tested-by: build bot (Jenkins) --- src/cpu/x86/tsc/delay_tsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cpu/x86/tsc/delay_tsc.c') diff --git a/src/cpu/x86/tsc/delay_tsc.c b/src/cpu/x86/tsc/delay_tsc.c index 07a4053f41..5aaba90ed9 100644 --- a/src/cpu/x86/tsc/delay_tsc.c +++ b/src/cpu/x86/tsc/delay_tsc.c @@ -190,7 +190,7 @@ void udelay(unsigned us) } } -#if CONFIG_TSC_MONOTONIC_TIMER && !defined(__PRE_RAM__) && !defined(__SMM__) +#if CONFIG_TSC_MONOTONIC_TIMER && !defined(__PRE_RAM__) #include static struct monotonic_counter { -- cgit v1.2.3