From 76b00c046b3c58670c60badbf5f15a66cbe25f85 Mon Sep 17 00:00:00 2001 From: Colin Davidson Date: Mon, 28 Jul 2025 15:30:24 -0700 Subject: [PATCH] arm64 has an invariant tsc too --- core/time/perf.odin | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/time/perf.odin b/core/time/perf.odin index 265a20edf..f4e1b4aa8 100644 --- a/core/time/perf.odin +++ b/core/time/perf.odin @@ -104,6 +104,8 @@ TSC at a fixed frequency, independent of ACPI state, and CPU frequency. has_invariant_tsc :: proc "contextless" () -> bool { when ODIN_ARCH == .amd64 { return x86_has_invariant_tsc() + } else when ODIN_ARCH == .arm64 { + return true } return false