VirtualBox

Ignore:
Timestamp:
Feb 17, 2015 7:24:45 PM (10 years ago)
Author:
vboxsync
Message:

SUPDrv,GIP,TM: Combined fOsTscDeltasInSync and fTscDeltasRoughlyInSync into enmUseTscDelta and added fGetGipCpu. Bumped GIP and support driver versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/time/timesup.cpp

    r54224 r54252  
    168168        if (ASMCpuId_EDX(1) & X86_CPUID_FEATURE_EDX_SSE2)
    169169            iWorker = pGip->u32Mode == SUPGIPMODE_INVARIANT_TSC
    170                     ? !pGip->fOsTscDeltasInSync && !pGip->fTscDeltasRoughlyInSync
    171                       ? RTTIMENANO_WORKER_LFENCE_INVAR_WITH_DELTA : RTTIMENANO_WORKER_LFENCE_INVAR_NO_DELTA
     170                    ? pGip->enmUseTscDelta <= SUPGIPUSETSCDELTA_ROUGHLY_ZERO
     171                      ? RTTIMENANO_WORKER_LFENCE_INVAR_NO_DELTA : RTTIMENANO_WORKER_LFENCE_INVAR_WITH_DELTA
    172172                    : pGip->u32Mode == SUPGIPMODE_SYNC_TSC
    173                     ? false /** @todo !pGip->fOsTscDeltasInSync && !pGip->fTscDeltasRoughlyInSync */
    174                       ? RTTIMENANO_WORKER_LFENCE_SYNC_WITH_DELTA  : RTTIMENANO_WORKER_LFENCE_SYNC_NO_DELTA
     173                    ? pGip->enmUseTscDelta <= SUPGIPUSETSCDELTA_ROUGHLY_ZERO
     174                      ? RTTIMENANO_WORKER_LFENCE_SYNC_NO_DELTA  : RTTIMENANO_WORKER_LFENCE_SYNC_WITH_DELTA
    175175                    : RTTIMENANO_WORKER_LFENCE_ASYNC;
    176176        else
    177177            iWorker = pGip->u32Mode == SUPGIPMODE_INVARIANT_TSC
    178                     ? !pGip->fOsTscDeltasInSync && !pGip->fTscDeltasRoughlyInSync
    179                       ? RTTIMENANO_WORKER_LEGACY_INVAR_WITH_DELTA : RTTIMENANO_WORKER_LEGACY_INVAR_NO_DELTA
     178                    ? pGip->enmUseTscDelta <= SUPGIPUSETSCDELTA_ROUGHLY_ZERO
     179                      ? RTTIMENANO_WORKER_LEGACY_INVAR_NO_DELTA : RTTIMENANO_WORKER_LEGACY_INVAR_WITH_DELTA
    180180                    : pGip->u32Mode == SUPGIPMODE_SYNC_TSC
    181                     ? false /** @todo !pGip->fOsTscDeltasInSync && !pGip->fTscDeltasRoughlyInSync */
    182                       ? RTTIMENANO_WORKER_LEGACY_SYNC_WITH_DELTA  : RTTIMENANO_WORKER_LEGACY_SYNC_NO_DELTA
     181                    ? pGip->enmUseTscDelta <= SUPGIPUSETSCDELTA_ROUGHLY_ZERO
     182                      ? RTTIMENANO_WORKER_LEGACY_SYNC_NO_DELTA  : RTTIMENANO_WORKER_LEGACY_SYNC_WITH_DELTA
    183183                    : RTTIMENANO_WORKER_LEGACY_ASYNC;
    184184    }
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