1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <cpu/x86/tsc.h>
6 uint64_t timestamp_get(void)
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.