Changeset 7916 in vbox for trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c
- Timestamp:
- Apr 11, 2008 1:14:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c
r7915 r7916 4167 4167 bool VBOXCALL supdrvDetermineAsyncTsc(uint64_t *pu64DiffCores) 4168 4168 { 4169 static uint64_t s_aTsc[8][ 8];4169 static uint64_t s_aTsc[8][RTCPUSET_MAX_CPUS]; 4170 4170 uint64_t u64Diff, u64DiffMin, u64DiffMax, u64TscLast; 4171 4171 int iSlot, iCpu, cCpus; … … 4180 4180 if (cCpus < 2) 4181 4181 return false; 4182 4183 /* 4184 * Collect data from the first 8 online CPUs. 4185 */ 4186 if (cCpus > RT_ELEMENTS(s_aTsc)) 4187 cCpus = RT_ELEMENTS(s_aTsc); 4182 Assert(cCpus <= RT_ELEMENTS(s_aTsc[0])); 4183 4184 /* 4185 * Collect data from the online CPUs. 4186 */ 4188 4187 for (iSlot = 0; iSlot < RT_ELEMENTS(s_aTsc); iSlot++) 4189 4188 {
Note:
See TracChangeset
for help on using the changeset viewer.