VirtualBox

Changeset 63341 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
Aug 11, 2016 2:12:42 PM (8 years ago)
Author:
vboxsync
Message:

Runtime/r0drv/linux: 4.8 mod_timer_pinned fix

File:
1 edited

Legend:

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

    r62566 r63341  
    362362#ifdef CONFIG_SMP
    363363        if (fPinned)
     364        {
     365# if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
     366            mod_timer(&pSubTimer->u.Std.LnxTimer, pSubTimer->u.Std.ulNextJiffies);
     367# else
    364368            mod_timer_pinned(&pSubTimer->u.Std.LnxTimer, pSubTimer->u.Std.ulNextJiffies);
     369# endif
     370        }
    365371        else
    366372#endif
     
    797803#ifdef CONFIG_SMP
    798804            if (pTimer->fSpecificCpu || pTimer->fAllCpus)
     805            {
     806# if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
     807                mod_timer(&pSubTimer->u.Std.LnxTimer, pSubTimer->u.Std.ulNextJiffies);
     808# else
    799809                mod_timer_pinned(&pSubTimer->u.Std.LnxTimer, pSubTimer->u.Std.ulNextJiffies);
     810# endif
     811            }
    800812            else
    801813#endif
     
    854866#ifdef CONFIG_SMP
    855867                    if (pTimer->fSpecificCpu || pTimer->fAllCpus)
     868                    {
     869# if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
     870                        mod_timer(&pSubTimer->u.Std.LnxTimer, pSubTimer->u.Std.ulNextJiffies);
     871# else
    856872                        mod_timer_pinned(&pSubTimer->u.Std.LnxTimer, pSubTimer->u.Std.ulNextJiffies);
     873# endif
     874                    }
    857875                    else
    858876#endif
     
    15671585#endif
    15681586        {
     1587#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
     1588            init_timer_pinned(&pTimer->aSubTimers[iCpu].u.Std.LnxTimer);
     1589#else
    15691590            init_timer(&pTimer->aSubTimers[iCpu].u.Std.LnxTimer);
     1591#endif
    15701592            pTimer->aSubTimers[iCpu].u.Std.LnxTimer.data        = (unsigned long)&pTimer->aSubTimers[iCpu];
    15711593            pTimer->aSubTimers[iCpu].u.Std.LnxTimer.function    = rtTimerLinuxStdCallback;
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