]> git.hungrycats.org Git - linux/commit
[PATCH] ppc32: Fix preemptible check
authorPaul Mackerras <paulus@samba.org>
Thu, 3 Jun 2004 01:22:08 +0000 (18:22 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 3 Jun 2004 01:22:08 +0000 (18:22 -0700)
commit717f88507446b3ece2a2345469e174453d431d01
tree6ea03668a7de12340e9fbd4323025eae6f85640f
parent9dfbbd917ee79f5bff02e5b67ffc10c526e4a2e3
[PATCH] ppc32: Fix preemptible check

Ben H added a check in a couple of places to make sure that we had
preemption disabled when we call enable_kernel_{fp,altivec}.
Unfortunately the check he used trips in the case when
CONFIG_PREEMPT=n.  This patch fixes it by defining a preemptible()
macro (which reduces to 0 when CONFIG_PREEMPT=n) and doing
WARN_ON(preemptible()).

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/kernel/process.c
include/asm-ppc/hardirq.h