VirtualBox

Ignore:
Timestamp:
Jul 16, 2015 4:16:16 PM (9 years ago)
Author:
vboxsync
Message:

Runtime/r0drv/threadctxhooks: Call preempt_notifier_inc/dec() for linux kernels 4.2.0+.

File:
1 edited

Legend:

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

    r55976 r56955  
    191191    pThis->PreemptOps.sched_in  = rtThreadCtxHooksLnxSchedIn;
    192192
     193#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
     194    preempt_notifier_inc();
     195#endif
     196
    193197    *phCtxHook = pThis;
    194198    return VINF_SUCCESS;
     
    220224        Assert(!pThis->fEnabled); /* paranoia */
    221225    }
     226
     227#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
     228    preempt_notifier_dec();
     229#endif
    222230
    223231    ASMAtomicWriteU32(&pThis->u32Magic, ~RTTHREADCTXHOOKINT_MAGIC);
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