summaryrefslogtreecommitdiffstats
path: root/arch/x86/cpu/coreboot/timestamp.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/cpu/coreboot/timestamp.c')
-rw-r--r--arch/x86/cpu/coreboot/timestamp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/cpu/coreboot/timestamp.c b/arch/x86/cpu/coreboot/timestamp.c
index 2ca7a57bce..d26718e65b 100644
--- a/arch/x86/cpu/coreboot/timestamp.c
+++ b/arch/x86/cpu/coreboot/timestamp.c
@@ -39,7 +39,9 @@ static struct timestamp_table *ts_table __attribute__((section(".data")));
void timestamp_init(void)
{
ts_table = lib_sysinfo.tstamp_table;
- timer_set_tsc_base(ts_table->base_time);
+#ifdef CONFIG_SYS_X86_TSC_TIMER
+ timer_set_base(ts_table->base_time);
+#endif
timestamp_add_now(TS_U_BOOT_INITTED);
}
OpenPOWER on IntegriCloud