]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] add bottom_half.h
authorAndrew Morton <akpm@osdl.org>
Thu, 7 Dec 2006 04:31:30 +0000 (20:31 -0800)
committerChris Wright <chrisw@sous-sol.org>
Mon, 11 Dec 2006 19:32:40 +0000 (11:32 -0800)
commita030daed9949daa6746072ee2752217adc424252
tree6b3061ef2fc562327cabac787a45688c884a8476
parent04ff1391c82a403b5775da6e03c22559f86de091
[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 bothj 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: Chris Wright <chrisw@sous-sol.org>
include/linux/bottom_half.h [new file with mode: 0644]
include/linux/interrupt.h
include/linux/spinlock.h