VirtualBox

Changeset 54215 in vbox for trunk/include


Ignore:
Timestamp:
Feb 16, 2015 12:33:36 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98279
Message:

Runtime,TM: Use GIP's fTscDeltasAreRoughlyInSync.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/sup.h

    r54214 r54215  
    439439    ((a_pGip)->u32Mode == SUPGIPMODE_INVARIANT_TSC && !((a_pGip)->fOsTscDeltasInSync))
    440440
     441/** Whether the application of TSC-deltas are worth it (performance matters). */
     442#define GIP_TSC_DELTAS_ROUGHLY_IN_SYNC(a_pGip)         ((a_pGip)->fTscDeltasRoughlyInSync)
     443
    441444#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    442445/**
     
    16491652DECLINLINE(uint64_t) SUPReadTsc(void)
    16501653{
    1651     if (GIP_ARE_TSC_DELTAS_APPLICABLE(g_pSUPGlobalInfoPage))
     1654    if (    GIP_ARE_TSC_DELTAS_APPLICABLE(g_pSUPGlobalInfoPage)
     1655        && !GIP_TSC_DELTAS_ROUGHLY_IN_SYNC(g_pSUPGlobalInfoPage))
    16521656    {
    16531657        uint64_t u64Tsc = UINT64_MAX;
Note: See TracChangeset for help on using the changeset viewer.

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