Home | History | Annotate | Download | only in x86

Lines Matching defs:tsc

1 /*	$NetBSD: tsc.c,v 1.63 2025/05/08 05:31:16 imil Exp $	*/
30 __KERNEL_RCSID(0, "$NetBSD: tsc.c,v 1.63 2025/05/08 05:31:16 imil Exp $");
52 #include "tsc.h"
81 .tc_name = "TSC",
104 * where the TSC is known invariant:
133 * TSC and Power Management Events on AMD Processors
157 * The best way to check whether the TSC counter is invariant or not
218 * Initialize timecounter(9) and DELAY() function of TSC.
237 aprint_debug("TSC not known invariant on this CPU\n");
240 aprint_error("ERROR: %lld cycle TSC drift observed\n",
288 /* Wait for other side then read our TSC. */
333 uint64_t tsc;
343 /* Suffer a cache miss, then read TSC. */
345 tsc = tsc_dummy_cacheline;
347 tsc += rdtsc();
350 (void)atomic_swap_64(&tsc_sync_val, tsc);
448 "WARNING: %s TSC went backwards by %u - "
463 * tsc has been reset; zero the cached tsc of every lwp in the system
464 * so we don't spuriously report that the tsc has gone backward.