VirtualBox

Changeset 54313 in vbox


Ignore:
Timestamp:
Feb 19, 2015 8:55:41 PM (10 years ago)
Author:
vboxsync
Message:

HostDrivers/Support: should be bool.

File:
1 edited

Legend:

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

    r54312 r54313  
    60036003{
    60046004    PSUPDRVDEVEXT     pDevExt = (PSUPDRVDEVEXT)pvUser;
    6005     uint32_t          cTimesMeasured = 0;
     6005    bool              fInitialMeasurement = true;
    60066006    uint32_t          cConsecutiveTimeouts = 0;
    60076007    int               rc = VERR_INTERNAL_ERROR_2;
     
    60636063            {
    60646064                cConsecutiveTimeouts = 0;
    6065                 if (!cTimesMeasured++)
     6065                if (fInitialMeasurement)
    60666066                {
    60676067                    int cTries = 8;
    60686068                    int cMsWaitPerTry = 10;
     6069                    fInitialMeasurement = false;
    60696070                    do
    60706071                    {
     
    60846085                    PSUPGLOBALINFOPAGE pGip = pDevExt->pGip;
    60856086                    unsigned iCpu;
    6086 
    6087                     if (cTimesMeasured == UINT32_MAX)
    6088                         cTimesMeasured = 1;
    60896087
    60906088                    /* Measure TSC-deltas only for the CPUs that are in the set. */
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