summaryrefslogtreecommitdiffstats
path: root/include/linux/bottom_half.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-12-06 20:31:30 -0800
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 08:39:20 -0800
commit676dcb8bc2ec78d80091037773598d6ec8c673d6 (patch)
tree70a82f63dcda34f8907ffd9e92898e8a8a5fef87 /include/linux/bottom_half.h
parent620034c84d1d939717bdfbe02c51a3fee43541c3 (diff)
downloadop-kernel-dev-676dcb8bc2ec78d80091037773598d6ec8c673d6.zip
op-kernel-dev-676dcb8bc2ec78d80091037773598d6ec8c673d6.tar.gz
[PATCH] add bottom_half.h
With CONFIG_SMP=n: drivers/input/ff-memless.c:384: warning: implicit declaration of function 'local_bh_disable' drivers/input/ff-memless.c:393: warning: implicit declaration of function 'local_bh_enable' Really linux/spinlock.h should include linux/interrupt.h. But interrupt.h includes sched.h which will need spinlock.h. So the patch breaks the _bh declarations out into a separate header and includes it in both interrupt.h and spinlock.h. Cc: "Randy.Dunlap" <rdunlap@xenotime.net> Cc: Andi Kleen <ak@suse.de> Cc: <stable@kernel.org> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/bottom_half.h')
-rw-r--r--include/linux/bottom_half.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/bottom_half.h b/include/linux/bottom_half.h
new file mode 100644
index 0000000..777dbf6
--- /dev/null
+++ b/include/linux/bottom_half.h
@@ -0,0 +1,10 @@
+#ifndef _LINUX_BH_H
+#define _LINUX_BH_H
+
+extern void local_bh_disable(void);
+extern void __local_bh_enable(void);
+extern void _local_bh_enable(void);
+extern void local_bh_enable(void);
+extern void local_bh_enable_ip(unsigned long ip);
+
+#endif /* _LINUX_BH_H */
OpenPOWER on IntegriCloud