diff options
| author | Colin Davidson <colrdavidson@gmail.com> | 2025-07-28 15:30:24 -0700 |
|---|---|---|
| committer | Colin Davidson <colrdavidson@gmail.com> | 2025-07-28 15:30:24 -0700 |
| commit | 76b00c046b3c58670c60badbf5f15a66cbe25f85 (patch) | |
| tree | 2958a3686353e3a7da1d33d67917fee98b487f85 /core/time | |
| parent | 1848e0df05a14679d49e5b87988fa6c7b609739b (diff) | |
arm64 has an invariant tsc too
Diffstat (limited to 'core/time')
| -rw-r--r-- | core/time/perf.odin | 2 |
1 files changed, 2 insertions, 0 deletions
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 |