VirtualBox

Ignore:
Timestamp:
Nov 5, 2014 10:56:59 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
96775
Message:

HostDrivers/Support: Recalc freq. casting.

File:
1 edited

Legend:

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

    r53218 r53226  
    74497449                 *        calculation on non-invariant hosts if it changes the history decision
    74507450                 *        taken in supdrvGipDoUpdateCpu(). */
     7451                uint64_t u64Interval = u64Delta / UINT64_C(GIP_UPDATEHZ_RECALC_FREQ);
    74517452                ASMAtomicWriteU32(&pGip->u32UpdateHz, u32UpdateHz);
    7452                 ASMAtomicWriteU32(&pGip->u32UpdateIntervalNS, (uint32_t)u64Delta / GIP_UPDATEHZ_RECALC_FREQ);
     7453                ASMAtomicWriteU32(&pGip->u32UpdateIntervalNS, (uint32_t)u64Interval);
    74537454            }
    74547455#endif
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