diff --git a/CpuTscSync/CpuTscSync.cpp b/CpuTscSync/CpuTscSync.cpp index a03f80b..83bd5e0 100755 --- a/CpuTscSync/CpuTscSync.cpp +++ b/CpuTscSync/CpuTscSync.cpp @@ -54,15 +54,15 @@ void CpuTscSyncPlugin::reset_tsc_adjust(void *) void CpuTscSyncPlugin::tsc_adjust_or_reset() { - if (getKernelVersion() >= KernelVersion::Monterey) { - DBGLOG("cputs", "reset tsc adjust"); - mp_rendezvous_no_intrs(reset_tsc_adjust, NULL); - } else { + // if (getKernelVersion() >= KernelVersion::Monterey) { + // DBGLOG("cputs", "reset tsc adjust"); + // mp_rendezvous_no_intrs(reset_tsc_adjust, NULL); + // } else { uint64_t tsc = rdtsc64(); DBGLOG("cputs", "current tsc from rdtsc64() is %lld. Rendezvouing..", tsc); // call the kernel function that will call this "action" on all cores/processors mp_rendezvous_no_intrs(stamp_tsc, &tsc); - } + // } tsc_synced = true; }