forked from pool/virtualbox
fadfe8ba5d
Add new patch file "fixes_for_4.15.patch". Modified vboxconfig.sh to issue a warning when there is a version mismatch rather than abort. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=384
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);
|