VirtualBox

Changeset 48383 in vbox for trunk/src


Ignore:
Timestamp:
Sep 9, 2013 10:14:21 AM (11 years ago)
Author:
vboxsync
Message:

Runtime/r0drv: be on the safe side

Location:
trunk/src/VBox/Runtime/r0drv/linux
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h

    r48382 r48383  
    126126
    127127/* For thread-context hooks. */
    128 #if defined(CONFIG_PREEMPT_NOTIFIERS)
     128#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 18) && defined(CONFIG_PREEMPT_NOTIFIERS)
    129129# include <linux/preempt.h>
    130130#endif
  • trunk/src/VBox/Runtime/r0drv/linux/threadctxhooks-r0drv-linux.c

    r48382 r48383  
    4040
    4141/*
    42  * Linux kernel 2.6.23 introduced thread-context hooks but RedHat kernel 2.6.18 has it backported.
    43  * Checking the define alone without depending on a version ought to be sufficient.
    44  */
    45 #if defined(CONFIG_PREEMPT_NOTIFIERS)
     42 * Linux kernel 2.6.23 introduced thread-context hooks but RedHat 2.6.18 kernels
     43 * got it backported.
     44 */
     45#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 18) && defined(CONFIG_PREEMPT_NOTIFIERS)
    4646
    4747/*******************************************************************************
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