]> git.hungrycats.org Git - linux/commitdiff
"kernel_locked()" needs <linux/smp_lock.h>.
authorLinus Torvalds <torvalds@home.osdl.org>
Tue, 5 Aug 2003 03:36:56 +0000 (20:36 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 5 Aug 2003 03:36:56 +0000 (20:36 -0700)
So make sure to include it in <asm-i386/hardirq.h> when needed
(ie for the CONFIG_PREEMPT case).

include/asm-i386/hardirq.h

index 5a14545af1791b0bf1b689cc0343ebc1080252ee..52fe4d99308526b9bfca9ecc231c7724616bad4c 100644 (file)
@@ -77,6 +77,7 @@ typedef struct {
 #define nmi_exit()             (preempt_count() -= HARDIRQ_OFFSET)
 
 #ifdef CONFIG_PREEMPT
+# include <linux/smp_lock.h>
 # define in_atomic()   ((preempt_count() & ~PREEMPT_ACTIVE) != kernel_locked())
 # define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1)
 #else