forked from pool/virtualbox
16 lines
765 B
Diff
16 lines
765 B
Diff
|
Index: VirtualBox-5.1.30/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
|
||
|
===================================================================
|
||
|
--- VirtualBox-5.1.30.orig/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
|
||
|
+++ VirtualBox-5.1.30/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
|
||
|
@@ -1584,7 +1584,9 @@ RTDECL(int) RTTimerCreateEx(PRTTIMER *pp
|
||
|
else
|
||
|
#endif
|
||
|
{
|
||
|
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
|
||
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
|
||
|
+ __init_timer(&pTimer->aSubTimers[iCpu].u.Std.LnxTimer, TIMER_PINNED);
|
||
|
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
|
||
|
init_timer_pinned(&pTimer->aSubTimers[iCpu].u.Std.LnxTimer);
|
||
|
#else
|
||
|
init_timer(&pTimer->aSubTimers[iCpu].u.Std.LnxTimer);
|