VirtualBox

Changeset 48382 in vbox


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

Runtime/r0drv: Depend only on kernel config define rather than the version.

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

Legend:

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

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

    r47955 r48382  
    3939#include "internal/thread.h"
    4040
    41 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 23) && defined(CONFIG_PREEMPT_NOTIFIERS)
     41/*
     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)
    4246
    4347/*******************************************************************************
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