summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/console/printk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/console/printk.c b/src/console/printk.c
index a08dd2f80f..b32fadb8b1 100644
--- a/src/console/printk.c
+++ b/src/console/printk.c
@@ -25,20 +25,20 @@
DECLARE_SPIN_LOCK(console_lock)
-#define TRACK_CONSOLE_TIME (CONFIG(HAVE_MONOTONIC_TIMER))
+#define TRACK_CONSOLE_TIME (!ENV_SMM && CONFIG(HAVE_MONOTONIC_TIMER))
static struct mono_time mt_start, mt_stop;
static long console_usecs;
static void console_time_run(void)
{
- if (TRACK_CONSOLE_TIME)
+ if (TRACK_CONSOLE_TIME && boot_cpu())
timer_monotonic_get(&mt_start);
}
static void console_time_stop(void)
{
- if (TRACK_CONSOLE_TIME) {
+ if (TRACK_CONSOLE_TIME && boot_cpu()) {
timer_monotonic_get(&mt_stop);
console_usecs += mono_time_diff_microseconds(&mt_start, &mt_stop);
}