Changeset 85698 in vbox for trunk/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
- Timestamp:
- Aug 11, 2020 5:05:29 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
r82968 r85698 51 51 #endif 52 52 53 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6,31)53 #if RTLNX_VER_MAX(2,6,31) 54 54 # define mod_timer_pinned mod_timer 55 55 # define HRTIMER_MODE_ABS_PINNED HRTIMER_MODE_ABS … … 368 368 if (fPinned) 369 369 { 370 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8,0)370 # if RTLNX_VER_MIN(4,8,0) 371 371 mod_timer(&pSubTimer->u.Std.LnxTimer, pSubTimer->u.Std.ulNextJiffies); 372 372 # else … … 721 721 722 722 723 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15,0)723 #if RTLNX_VER_MIN(4,15,0) 724 724 /** 725 725 * Timer callback function for standard timers. … … 840 840 if (pTimer->fSpecificCpu || pTimer->fAllCpus) 841 841 { 842 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8,0)842 # if RTLNX_VER_MIN(4,8,0) 843 843 mod_timer(&pSubTimer->u.Std.LnxTimer, ulNextJiffies); 844 844 # else … … 903 903 if (pTimer->fSpecificCpu || pTimer->fAllCpus) 904 904 { 905 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8,0)905 # if RTLNX_VER_MIN(4,8,0) 906 906 mod_timer(&pSubTimer->u.Std.LnxTimer, pSubTimer->u.Std.ulNextJiffies); 907 907 # else … … 1520 1520 /* For paranoid reasons, defer actually destroying the semaphore when 1521 1521 in atomic or interrupt context. */ 1522 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5,32)1522 #if RTLNX_VER_MIN(2,5,32) 1523 1523 if (in_atomic() || in_interrupt()) 1524 1524 #else … … 1621 1621 #endif 1622 1622 { 1623 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15,0)1623 #if RTLNX_VER_MIN(4,15,0) 1624 1624 timer_setup(&pTimer->aSubTimers[iCpu].u.Std.LnxTimer, rtTimerLinuxStdCallback, TIMER_PINNED); 1625 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8,0)1625 #elif RTLNX_VER_MIN(4,8,0) 1626 1626 init_timer_pinned(&pTimer->aSubTimers[iCpu].u.Std.LnxTimer); 1627 1627 #else 1628 1628 init_timer(&pTimer->aSubTimers[iCpu].u.Std.LnxTimer); 1629 1629 #endif 1630 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15,0)1630 #if RTLNX_VER_MAX(4,15,0) 1631 1631 pTimer->aSubTimers[iCpu].u.Std.LnxTimer.data = (unsigned long)&pTimer->aSubTimers[iCpu]; 1632 1632 pTimer->aSubTimers[iCpu].u.Std.LnxTimer.function = rtTimerLinuxStdCallback; … … 1687 1687 #endif 1688 1688 /* */ 1689 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0) || LINUX_VERSION_CODE >= KERNEL_VERSION(4, 13,0)1689 #if RTLNX_VER_MAX(4,9,0) || RTLNX_VER_MIN(4,13,0) 1690 1690 /* On 4.9, 4.10 and 4.12 we've observed tstRTR0Timer failures of the omni timer tests 1691 1691 where we get about half of the ticks we want. The failing test is using this value
Note:
See TracChangeset
for help on using the changeset viewer.