VirtualBox

Changeset 54258 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Feb 17, 2015 11:35:04 PM (10 years ago)
Author:
vboxsync
Message:

SUPReadTsc: semi-predict we can call ASMReadTSC and doesn't need deltas.

File:
1 edited

Legend:

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

    r54252 r54258  
    16101610DECLINLINE(uint64_t) SUPReadTsc(void)
    16111611{
    1612     if (g_pSUPGlobalInfoPage->enmUseTscDelta > SUPGIPUSETSCDELTA_ROUGHLY_ZERO)
    1613         return SUPReadTscWithDelta();
    1614     return ASMReadTSC();
     1612    if (g_pSUPGlobalInfoPage->enmUseTscDelta <= SUPGIPUSETSCDELTA_ROUGHLY_ZERO)
     1613        return ASMReadTSC();
     1614    return SUPReadTscWithDelta();
    16151615}
    16161616
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