VirtualBox

Changeset 37519 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jun 16, 2011 7:30:57 PM (14 years ago)
Author:
vboxsync
Message:

DevACPI: Drop the last seen time workaround as the problem should be addressed in TM now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    r37466 r37519  
    221221    uint16_t            cCpus;
    222222    uint64_t            u64PmTimerInitial;
    223     uint64_t            u64PmTimerLastSeen;
    224223    PTMTIMERR3          pPmTimerR3;
    225224    PTMTIMERR0          pPmTimerR0;
     
    15911590        uint64_t const u64PmTimerInitial = pThis->u64PmTimerInitial;
    15921591        uint64_t u64Now = TMTimerGet(pThis->CTX_SUFF(pPmTimer));
    1593 
    1594         /*
    1595          * Make 100% sure time doesn't go backwards.
    1596          */
    1597         uint64_t u64Seen;
    1598         do
    1599         {
    1600             u64Seen = ASMAtomicReadU64(&pThis->u64PmTimerLastSeen);
    1601             if (u64Now < u64Seen)
    1602             {
    1603 #ifdef DEBUG
    1604                 DBGFTRACE_PDM_U64_TAG(pDevIns, u64Now, "acpi bad");
    1605 # if 0
    1606                 RTTraceBufDisable(DBGFTRACE_PDM_TRACEBUF(pDevIns));
    1607                 AssertFailed();
    1608 # endif
    1609 #endif
    1610                 u64Now = u64Seen + 1;
    1611             }
    1612         } while (!ASMAtomicCmpXchgU64(&pThis->u64PmTimerLastSeen, u64Now, u64Seen));
    1613 
    16141592        TMTimerUnlock(pThis->CTX_SUFF(pPmTimer));
    16151593
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