diff options
Diffstat (limited to 'include/linux/hardirq.h')
-rw-r--r-- | include/linux/hardirq.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/hardirq.h b/include/linux/hardirq.h index b1d4332b5cf0..50d8b5744cf6 100644 --- a/include/linux/hardirq.h +++ b/include/linux/hardirq.h | |||
@@ -3,6 +3,7 @@ | |||
3 | 3 | ||
4 | #include <linux/preempt.h> | 4 | #include <linux/preempt.h> |
5 | #include <linux/smp_lock.h> | 5 | #include <linux/smp_lock.h> |
6 | #include <linux/lockdep.h> | ||
6 | #include <asm/hardirq.h> | 7 | #include <asm/hardirq.h> |
7 | #include <asm/system.h> | 8 | #include <asm/system.h> |
8 | 9 | ||
@@ -122,7 +123,7 @@ static inline void account_system_vtime(struct task_struct *tsk) | |||
122 | */ | 123 | */ |
123 | extern void irq_exit(void); | 124 | extern void irq_exit(void); |
124 | 125 | ||
125 | #define nmi_enter() irq_enter() | 126 | #define nmi_enter() do { lockdep_off(); irq_enter(); } while (0) |
126 | #define nmi_exit() __irq_exit() | 127 | #define nmi_exit() do { __irq_exit(); lockdep_on(); } while (0) |
127 | 128 | ||
128 | #endif /* LINUX_HARDIRQ_H */ | 129 | #endif /* LINUX_HARDIRQ_H */ |