VirtualBox

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


Ignore:
Timestamp:
Jun 5, 2018 2:26:52 PM (7 years ago)
Author:
vboxsync
Message:

PS2K: Switched delay timers from real to virtual time. That is what they should be, and virtual timers have much better accuracy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Input/PS2K.cpp

    r72408 r72450  
    15391539
    15401540    /*
    1541      * Create the input rate throttling timer. Does not use virtual time!
     1541     * Create the input rate throttling timer.
    15421542     */
    15431543    PTMTIMER pTimer;
    1544     rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_REAL, ps2kThrottleTimer, pThis,
    1545                                     TMTIMER_FLAGS_DEFAULT_CRIT_SECT, "PS2K Throttle Timer", &pTimer);
     1544    rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_VIRTUAL, ps2kThrottleTimer, pThis,
     1545                                TMTIMER_FLAGS_DEFAULT_CRIT_SECT, "PS2K Throttle Timer", &pTimer);
    15461546    if (RT_FAILURE(rc))
    15471547        return rc;
     
    15521552
    15531553    /*
    1554      * Create the typematic delay/repeat timer. Does not use virtual time!
     1554     * Create the typematic delay/repeat timer.
    15551555     */
    1556     rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_REAL, ps2kTypematicTimer, pThis,
     1556    rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_VIRTUAL, ps2kTypematicTimer, pThis,
    15571557                                TMTIMER_FLAGS_DEFAULT_CRIT_SECT, "PS2K Typematic Timer", &pTimer);
    15581558    if (RT_FAILURE(rc))
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