Changeset 54316 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Feb 19, 2015 9:37:41 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv.c
r54315 r54316 7395 7395 int64_t iDelta = pGipCpuWorker->u64TSCSample 7396 7396 - (pGipCpuMaster->u64TSCSample - pGipCpuMaster->i64TSCDelta); 7397 /** @todo r=bird: Why isn't this code using absolute values? Guess it mostly works fine because7398 * the detection code is biased thowards positive deltas (see tstSupTscDelta.cpp output) ... */7399 if (iDelta < pGipCpuWorker->i64TSCDelta)7397 if ( iDelta >= 0 7398 ? iDelta < pGipCpuWorker->i64TSCDelta 7399 : iDelta > pGipCpuWorker->i64TSCDelta || pGipCpuWorker->i64TSCDelta == INT64_MAX) 7400 7400 pGipCpuWorker->i64TSCDelta = iDelta; 7401 7401 }
Note:
See TracChangeset
for help on using the changeset viewer.