VirtualBox

Changeset 27199 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Mar 9, 2010 10:08:44 AM (15 years ago)
Author:
vboxsync
Message:

r0drv/linux/timer: hrtimer pinning fix for Linux >= 2.6.31 (code not active)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c

    r27198 r27199  
    6262
    6363#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31)
    64 # define mod_timer_pinned       mod_timer
     64# define mod_timer_pinned               mod_timer
     65# define HRTIMER_MODE_ABS_PINNED        HRTIMER_MODE_ABS
    6566#endif
    6667
     
    287288
    288289#ifdef RT_USE_LINUX_HRTIMER
    289     hrtimer_start(&pSubTimer->LnxTimer, rtTimerLnxNanoToKt(u64NextTS), HRTIMER_MODE_ABS);
     290    hrtimer_start(&pSubTimer->LnxTimer, rtTimerLnxNanoToKt(u64NextTS),
     291                  fPinned ? HRTIMER_MODE_ABS_PINNED : HRTIMER_MODE_ABS);
    290292#else
    291293    {
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