[POWERPC] Make soft_enabled irqs preempt safe
commitef2b343e99e772e35f0f9d00f7db318b6629c16e
authorHugh Dickins <hugh@veritas.com>
Fri, 10 Nov 2006 21:32:40 +0000 (10 21:32 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 4 Dec 2006 09:39:20 +0000 (4 20:39 +1100)
tree386f9b6b1376ab99a478ab5d394572fca720d0ef
parent56291e19e37cf3bb8fc701ebf3aa8ffbf59f73ef
[POWERPC] Make soft_enabled irqs preempt safe

Rewrite local_get_flags and local_irq_disable to use r13 explicitly,
to avoid the risk that gcc will split get_paca()->soft_enabled into a
sequence unsafe against preemption.  Similar care in local_irq_restore.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/irq.c
include/asm-powerpc/hw_irq.h