summaryrefslogtreecommitdiff
path: root/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/Runtime/r0drv/linux/the-linux-kernel.h')
-rw-r--r--src/VBox/Runtime/r0drv/linux/the-linux-kernel.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h b/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h
index eebf6734..a1791eea 100644
--- a/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h
+++ b/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h
@@ -4,7 +4,7 @@
*/
/*
- * Copyright (C) 2006-2011 Oracle Corporation
+ * Copyright (C) 2006-2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
@@ -90,6 +90,9 @@
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/sched.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0)
+# include <linux/sched/rt.h>
+#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 7)
# include <linux/jiffies.h>
#endif
@@ -121,6 +124,11 @@
#include <asm/uaccess.h>
#include <asm/div64.h>
+/* For thread-context hooks. */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 18) && defined(CONFIG_PREEMPT_NOTIFIERS)
+# include <linux/preempt.h>
+#endif
+
/* for workqueue / task queues. */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 41)
# include <linux/workqueue.h>
@@ -142,6 +150,10 @@
# define DEFINE_WAIT(name) DECLARE_WAITQUEUE(name, current)
#endif
+#ifndef __GFP_NOWARN
+# define __GFP_NOWARN 0
+#endif
+
/*
* 2.4 / early 2.6 compatibility wrappers
*/