VirtualBox

Changeset 1059 in vbox for trunk


Ignore:
Timestamp:
Feb 23, 2007 9:02:46 PM (18 years ago)
Author:
vboxsync
Message:

document TscInvariant

File:
1 edited

Legend:

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

    r1054 r1059  
    40754075        {
    40764076            /* Check for family 15 and the RDTSCP feature - hope that's is sufficient. */
     4077            /* r=frank: The test for TscInvariant should be sufficient */
    40774078            ASMCpuId(0x80000001, &uEAX, &uEBX, &uECX, &uEDX);
    40784079            if (   ((uEAX >> 8) & 0xf) == 0xf && ((uEAX >> 20) & 0x7f) == 0 /* family=15 */
    40794080                && (uEDX & BIT(27) /*RDTSCP*/))
    40804081            {
    4081                 /* Check the power specs for <check the docs what this actually is>. */
     4082                /* Check the power specs for Advanced Power Management Information */
    40824083                ASMCpuId(0x80000000, &uEAX, &uEBX, &uECX, &uEDX);
    40834084                if (uEAX < 0x80000007)
    40844085                    return SUPGIPMODE_ASYNC_TSC;
    40854086                ASMCpuId(0x80000007, &uEAX, &uEBX, &uECX, &uEDX);
     4087                /* TscInvariant 1=The TSC rate is ensured to be invariant across all P-States,
     4088                 * C-States, and stop-grant transitions (such as STPCLK Throttling); therefore
     4089                 * the TSC is suitable for use as a source of time. 0=No such guarantee is made
     4090                 * and software should avoid attempting to use the TSC as a source of time. */
    40864091                if (!(uEDX & BIT(8)))
    40874092                    return SUPGIPMODE_ASYNC_TSC;
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