soc/intel/common/block: fix storage size of HEST log address
[coreboot.git] / src / arch / x86 / timestamp.c
blob8ab10ed817f5eda1a1bb3d76c58a6355d559f4cf
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <cpu/x86/tsc.h>
4 #include <timestamp.h>
6 uint64_t timestamp_get(void)
8 return rdtscll();
11 int timestamp_tick_freq_mhz(void)
13 /* Chipsets that have a constant TSC provide this value correctly. */
14 if (tsc_constant_rate())
15 return tsc_freq_mhz();
17 /* Filling tick_freq_mhz = 0 in timestamps-table will trigger
18 * userspace utility to try deduce it from the running system.
20 return 0;