[PATCH] add bottom_half.h
authorAndrew Morton <akpm@osdl.org>
Thu, 7 Dec 2006 04:31:30 +0000 (20:31 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:20 +0000 (08:39 -0800)
commit676dcb8bc2ec78d80091037773598d6ec8c673d6
tree70a82f63dcda34f8907ffd9e92898e8a8a5fef87
parent620034c84d1d939717bdfbe02c51a3fee43541c3
[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>
include/linux/bottom_half.h [new file with mode: 0644]
include/linux/interrupt.h
include/linux/spinlock.h