- Timestamp:
- Feb 16, 2015 12:33:36 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 98279
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/sup.h
r54214 r54215 439 439 ((a_pGip)->u32Mode == SUPGIPMODE_INVARIANT_TSC && !((a_pGip)->fOsTscDeltasInSync)) 440 440 441 /** Whether the application of TSC-deltas are worth it (performance matters). */ 442 #define GIP_TSC_DELTAS_ROUGHLY_IN_SYNC(a_pGip) ((a_pGip)->fTscDeltasRoughlyInSync) 443 441 444 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 442 445 /** … … 1649 1652 DECLINLINE(uint64_t) SUPReadTsc(void) 1650 1653 { 1651 if (GIP_ARE_TSC_DELTAS_APPLICABLE(g_pSUPGlobalInfoPage)) 1654 if ( GIP_ARE_TSC_DELTAS_APPLICABLE(g_pSUPGlobalInfoPage) 1655 && !GIP_TSC_DELTAS_ROUGHLY_IN_SYNC(g_pSUPGlobalInfoPage)) 1652 1656 { 1653 1657 uint64_t u64Tsc = UINT64_MAX; -
trunk/src/VBox/Runtime/common/time/timesup.cpp
r54202 r54215 160 160 * @returns true if deltas needs to be applied, false if not. 161 161 * @param pGip The GIP. 162 * 163 * @remarks If you change this, make sure to also change tmR3ReallyNeedDeltas(). 162 164 */ 163 165 static bool rtTimeNanoTsInternalReallyNeedDeltas(PSUPGLOBALINFOPAGE pGip) 164 166 { 167 return !pGip->fOsTscDeltasInSync && !pGip->fTscDeltasRoughlyInSync; 168 #if 0 165 169 if (!pGip->fOsTscDeltasInSync) 166 170 { … … 173 177 } 174 178 return false; 179 #endif 175 180 } 176 181 -
trunk/src/VBox/VMM/VMMR3/TM.cpp
r54214 r54215 952 952 * @returns true if deltas needs to be applied, false if not. 953 953 * @param pGip The GIP. 954 * 955 * @remarks If you change this, make sure to also change 956 * rtTimeNanoTsInternalReallyNeedDeltas(). 954 957 */ 955 958 static bool tmR3ReallyNeedDeltas(PSUPGLOBALINFOPAGE pGip) 956 959 { 960 return !pGip->fOsTscDeltasInSync && !pGip->fTscDeltasRoughlyInSync; 961 #if 0 957 962 if (!pGip->fOsTscDeltasInSync) 958 963 { … … 965 970 } 966 971 return false; 972 #endif 967 973 } 968 974
Note:
See TracChangeset
for help on using the changeset viewer.