Allen Martin | 685e0f8 | 2016-07-26 19:34:29 -0700 | [diff] [blame^] | 1 | From 2f30d7fb5ccd9a4e3451744e76c9fba180073864 Mon Sep 17 00:00:00 2001 |
| 2 | From: Thomas Gleixner <tglx@linutronix.de> |
| 3 | Date: Wed, 29 Jun 2011 20:06:39 +0200 |
| 4 | Subject: [PATCH 168/317] rtmutex: Avoid include hell |
| 5 | X-NVConfidentiality: public |
| 6 | |
| 7 | Include only the required raw types. This avoids pulling in the |
| 8 | complete spinlock header which in turn requires rtmutex.h at some point. |
| 9 | |
| 10 | Signed-off-by: Thomas Gleixner <tglx@linutronix.de> |
| 11 | Signed-off-by: Allen Martin <amartin@nvidia.com> |
| 12 | --- |
| 13 | include/linux/rtmutex.h | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/include/linux/rtmutex.h b/include/linux/rtmutex.h |
| 17 | index 51dc12e3860c..2ed41c408043 100644 |
| 18 | --- a/include/linux/rtmutex.h |
| 19 | +++ b/include/linux/rtmutex.h |
| 20 | @@ -14,7 +14,7 @@ |
| 21 | |
| 22 | #include <linux/linkage.h> |
| 23 | #include <linux/rbtree.h> |
| 24 | -#include <linux/spinlock_types.h> |
| 25 | +#include <linux/spinlock_types_raw.h> |
| 26 | |
| 27 | extern int max_lock_depth; /* for sysctl */ |
| 28 | |
| 29 | -- |
| 30 | 2.9.3 |
| 31 | |