VirtualBox

Changeset 14631 in vbox for trunk/src


Ignore:
Timestamp:
Nov 26, 2008 11:00:55 AM (16 years ago)
Author:
vboxsync
Message:

implemented better DRAM refresh rate esteemation, disabled yet due
to timer starvation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevPit-i8254.cpp

    r14583 r14631  
    653653        const int fRefresh = pThis->dummy_refresh_clock;
    654654#else
    655         const int fRefresh = (u64Now / 15085 ) & 1;
     655        /* To make refresh info statistically correct */
     656        const int freq = 15085;
     657        const int fRefresh = ((u64Now % freq ) > (freq / 2)) ? 1 : 0;
     658        LogRel(("unow=%lld\n", u64Now));
    656659#endif
    657660        /* bit 2,3 NMI / parity status stuff. */
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