From 6cb13e5bfa17b9013b5549a90b246ff50abd419c Mon Sep 17 00:00:00 2001 From: lizzie Date: Tue, 19 May 2026 08:11:24 +0000 Subject: [PATCH] fx invariant --- src/common/x64/cpu_wait.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/x64/cpu_wait.cpp b/src/common/x64/cpu_wait.cpp index 734b514f0f..f3ff4f264e 100644 --- a/src/common/x64/cpu_wait.cpp +++ b/src/common/x64/cpu_wait.cpp @@ -29,8 +29,8 @@ void MicroSleep(u64 rem) { // At 4 GHz, 100K cycles is 25us auto& caps = GetCPUCaps(); u32 cycles = caps.invariant_tsc - ? 1'000'000U - : rem * (caps.tsc_frequency / 1000000ULL); + ? rem * (caps.tsc_frequency / 1000000ULL) + : 1'000'000ULL; if (caps.waitpkg) { constexpr auto RequestC02State = 0U; _tpause(RequestC02State, FencedRDTSC() + cycles);