1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <cpu/x86/tsc.h>
7 uint64_t timestamp_get(void)
12 int timestamp_tick_freq_mhz(void)
14 /* Chipsets that have a constant TSC provide this value correctly. */
15 if (tsc_constant_rate())
16 return tsc_freq_mhz();
18 /* Filling tick_freq_mhz = 0 in timestamps-table will trigger
19 * userspace utility to try deduce it from the running system.