diff options
-rw-r--r-- | include/linux/hardirq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hardirq.h b/include/linux/hardirq.h index 714da7e5d10c..32f9fd6619b4 100644 --- a/include/linux/hardirq.h +++ b/include/linux/hardirq.h | |||
@@ -94,6 +94,7 @@ | |||
94 | #define in_nmi() (preempt_count() & NMI_MASK) | 94 | #define in_nmi() (preempt_count() & NMI_MASK) |
95 | 95 | ||
96 | #if defined(CONFIG_PREEMPT) && defined(CONFIG_BKL) | 96 | #if defined(CONFIG_PREEMPT) && defined(CONFIG_BKL) |
97 | # include <linux/sched.h> | ||
97 | # define PREEMPT_INATOMIC_BASE (current->lock_depth >= 0) | 98 | # define PREEMPT_INATOMIC_BASE (current->lock_depth >= 0) |
98 | #else | 99 | #else |
99 | # define PREEMPT_INATOMIC_BASE 0 | 100 | # define PREEMPT_INATOMIC_BASE 0 |