VirtualBox

Changeset 54379 in vbox


Ignore:
Timestamp:
Feb 23, 2015 11:04:07 AM (10 years ago)
Author:
vboxsync
Message:

SUPDrvGip.cpp: Fixed warnings and build break.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrvGip.cpp

    r54377 r54379  
    884884        int64_t  iStartTscDelta = iStartGipCpu < pGip->cCpus ? pGip->aCPUs[iStartGipCpu].i64TSCDelta : INT64_MAX;
    885885        int64_t  iStopTscDelta  = iStopGipCpu  < pGip->cCpus ? pGip->aCPUs[iStopGipCpu].i64TSCDelta  : INT64_MAX;
    886         if (RT_LIKELY(iStartTscDelta != INT64_MAX && iStopGipCpu != INT64_MAX))
     886        if (RT_LIKELY(iStartTscDelta != INT64_MAX && iStopTscDelta != INT64_MAX))
    887887        {
    888888            if (pGip->enmUseTscDelta > SUPGIPUSETSCDELTA_PRACTICALLY_ZERO)
     
    11721172                    int64_t  iStartTscDelta = iStartGipCpu < pGip->cCpus ? pGip->aCPUs[iStartGipCpu].i64TSCDelta : INT64_MAX;
    11731173                    int64_t  iStopTscDelta  = iStopGipCpu  < pGip->cCpus ? pGip->aCPUs[iStopGipCpu].i64TSCDelta  : INT64_MAX;
    1174                     if (RT_LIKELY(iStartTscDelta != INT64_MAX && iStopGipCpu != INT64_MAX))
     1174                    if (RT_LIKELY(iStartTscDelta != INT64_MAX && iStopTscDelta != INT64_MAX))
    11751175                    {
    11761176                        if (pGip->enmUseTscDelta > SUPGIPUSETSCDELTA_PRACTICALLY_ZERO)
     
    26532653     */
    26542654    if (fIsMaster)
     2655    {
    26552656        if (RT_LIKELY(ASMAtomicCmpXchgU32(&pOtherSync->uSyncVar, GIP_TSC_DELTA_SYNC2_STEADY, GIP_TSC_DELTA_SYNC2_READY)))
    26562657        { /* likely*/ }
    26572658        else
    26582659            return false;
     2660    }
    26592661
    26602662    /*
     
    27102712     */
    27112713    if (!fIsMaster)
     2714    {
    27122715        if (RT_LIKELY(ASMAtomicCmpXchgU32(&pOtherSync->uSyncVar, GIP_TSC_DELTA_SYNC2_STEADY, GIP_TSC_DELTA_SYNC2_READY)))
    27132716        { /* likely */ }
     
    27172720            return false;
    27182721        }
     2722    }
    27192723
    27202724    /*
     
    27222726     */
    27232727    if (fIsMaster)
     2728    {
    27242729        if (RT_LIKELY(ASMAtomicCmpXchgU32(&pOtherSync->uSyncVar, GIP_TSC_DELTA_SYNC2_GO, GIP_TSC_DELTA_SYNC2_STEADY)))
    27252730        { /* likely */ }
     
    27292734            return false;
    27302735        }
     2736    }
    27312737
    27322738    /*
     
    27552761     */
    27562762    if (!fIsMaster)
     2763    {
    27572764        if (RT_LIKELY(ASMAtomicCmpXchgU32(&pOtherSync->uSyncVar, GIP_TSC_DELTA_SYNC2_GO, GIP_TSC_DELTA_SYNC2_STEADY)))
    27582765        { /* likely */ }
     
    27622769            return false;
    27632770        }
     2771    }
    27642772
    27652773    /*
     
    35353543    rc = RTSemMutexRequest(pDevExt->mtxTscDelta, RT_INDEFINITE_WAIT);
    35363544#else
    3537     rc = RTSemFastMutexRequest(pDevExt->mtxTscDelta, RT_INDEFINITE_WAIT);
     3545    rc = RTSemFastMutexRequest(pDevExt->mtxTscDelta);
    35383546#endif
    35393547    if (RT_FAILURE(rc))
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