Changeset 57260 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Aug 10, 2015 11:42:12 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrvGip.cpp
r57233 r57260 706 706 * 707 707 * @param pGip The GIP. 708 * @param nsElapsed The number of nano 708 * @param nsElapsed The number of nanoseconds elapsed. 709 709 * @param cElapsedTscTicks The corresponding number of TSC ticks. 710 710 * @param iTick The tick number for debugging. … … 1020 1020 * @param fRough Set if we're doing the rough calculation that the 1021 1021 * TSC measuring code needs, where accuracy isn't all 1022 * that important (too high is better than to low).1022 * that important (too high is better than too low). 1023 1023 * When clear we try for best accuracy that we can 1024 1024 * achieve in reasonably short time. … … 1099 1099 1100 1100 /* 1101 * If the CPU changes things get a bit complicated and what we1102 * can get away with depends on the GIP mode / TSC reliab lity.1101 * If the CPU changes, things get a bit complicated and what we 1102 * can get away with depends on the GIP mode / TSC reliability. 1103 1103 */ 1104 1104 if (idCpuStop != idCpuStart) … … 1166 1166 * No valid deltas. We retry, if we're on our last retry 1167 1167 * we do the cross call instead just to get a result. The 1168 * frequency will be refined in a few seconds anyway s.1168 * frequency will be refined in a few seconds anyway. 1169 1169 */ 1170 1170 else if (cTriesLeft > 0) … … 1175 1175 } 1176 1176 /* 1177 * Asynchronous TSC mode: This is bad as the reason we usually1177 * Asynchronous TSC mode: This is bad, as the reason we usually 1178 1178 * use this mode is to deal with variable TSC frequencies and 1179 1179 * deltas. So, we need to get the TSC from the same CPU as … … 1666 1666 * 1667 1667 * @param pGip Pointer to the GIP. 1668 * @param pCpu Pointer to which GIP CPU to init alize.1668 * @param pCpu Pointer to which GIP CPU to initialize. 1669 1669 * @param u64NanoTS The current nanosecond timestamp. 1670 1670 * @param uCpuHz The CPU frequency to set, 0 if the caller doesn't know. … … 2121 2121 * Determine if we need to update the CPU (TSC) frequency calculation. 2122 2122 * 2123 * We don't need to keep re alculating the frequency when it's invariant,2123 * We don't need to keep recalculating the frequency when it's invariant, 2124 2124 * unless the special tstGIP-2 testing mode is enabled. 2125 2125 */
Note:
See TracChangeset
for help on using the changeset viewer.