VirtualBox

Ignore:
Timestamp:
Apr 11, 2008 1:14:11 PM (17 years ago)
Author:
vboxsync
Message:

Check all the CPUs instead of just the first 8.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c

    r7915 r7916  
    41674167bool VBOXCALL supdrvDetermineAsyncTsc(uint64_t *pu64DiffCores)
    41684168{
    4169     static uint64_t s_aTsc[8][8];
     4169    static uint64_t s_aTsc[8][RTCPUSET_MAX_CPUS];
    41704170    uint64_t u64Diff, u64DiffMin, u64DiffMax, u64TscLast;
    41714171    int iSlot, iCpu, cCpus;
     
    41804180    if (cCpus < 2)
    41814181        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     */
    41884187    for (iSlot = 0; iSlot < RT_ELEMENTS(s_aTsc); iSlot++)
    41894188    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette