summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-05-12 16:48:31 -0500
committerAaron Durbin <adurbin@chromium.org>2015-05-13 00:23:53 +0200
commit1f04e94b7915ce599e49a71fd38cb72523c9c887 (patch)
treef05749f1a45b125f8156b039d33924696e3799cb /src/cpu
parent797ca1b71217675a1fcdde108b486e74632059a3 (diff)
downloadcoreboot-1f04e94b7915ce599e49a71fd38cb72523c9c887.tar.xz
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 <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/10187 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/x86/tsc/delay_tsc.c2
1 files changed, 1 insertions, 1 deletions
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 <timer.h>
static struct monotonic_counter {