VirtualBox

Changeset 2455 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 2, 2007 5:10:41 PM (18 years ago)
Author:
vboxsync
Message:

Link the TSC to the timer sync clock.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/Makefile

    r2201 r2455  
    4040DEFS += VBOX_WITH_INTERNAL_NETWORKING
    4141endif
     42## temp hack.
     43#ifeq ($(USERNAME),bird)
     44 DEFS += VBOX_WITH_VIRTUAL_SYNC_TIMERS
     45#endif
    4246
    4347
  • trunk/src/VBox/VMM/VMMAll/TMAllCpu.cpp

    r2081 r2455  
    4242DECLINLINE(uint64_t) tmCpuTickGetRawVirtual(PVM pVM, bool fCheckTimers)
    4343{
     44#ifdef VBOX_WITH_VIRTUAL_SYNC_TIMERS
     45    uint64_t u64 = TMVirtualSyncGet(pVM/** @todo fCheckTimers */);
     46#else
    4447    uint64_t u64 = TMVirtualGetEx(pVM, fCheckTimers);
     48#endif
    4549    if (u64 != TMCLOCK_FREQ_VIRTUAL)
    4650        u64 = ASMMultU64ByU32DivByU32(u64, pVM->tm.s.cTSCTicksPerSecond, TMCLOCK_FREQ_VIRTUAL);
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