diff --git a/core/time/perf.odin b/core/time/perf.odin index e51b17441..69f7eceaa 100644 --- a/core/time/perf.odin +++ b/core/time/perf.odin @@ -56,6 +56,12 @@ when ODIN_ARCH == .amd64 { } } +when ODIN_OS != .Darwin && ODIN_OS != .Linux && ODIN_OS != .FreeBSD { + _get_tsc_frequency :: proc "contextless" () -> (u64, bool) { + return 0, false + } +} + has_invariant_tsc :: proc "contextless" () -> bool { when ODIN_ARCH == .amd64 { return x86_has_invariant_tsc() diff --git a/core/time/tsc_openbsd.odin b/core/time/tsc_openbsd.odin deleted file mode 100644 index ab126d5c1..000000000 --- a/core/time/tsc_openbsd.odin +++ /dev/null @@ -1,7 +0,0 @@ -//+private -//+build openbsd -package time - -_get_tsc_frequency :: proc "contextless" () -> (u64, bool) { - return 0, false -} diff --git a/core/time/tsc_windows.odin b/core/time/tsc_windows.odin deleted file mode 100644 index 7f7be6393..000000000 --- a/core/time/tsc_windows.odin +++ /dev/null @@ -1,7 +0,0 @@ -//+private -//+build windows -package time - -_get_tsc_frequency :: proc "contextless" () -> (u64, bool) { - return 0, false -}