sparc32, leon: must protect IRQ controller register with spinlock
authorDaniel Hellstrom <daniel@gaisler.com>
Tue, 19 Apr 2011 23:41:21 +0000 (23:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Apr 2011 22:31:29 +0000 (15:31 -0700)
commitd61a38b2ced149c00898833ccd3ea0433db8ae7d
treea1bbd0305469af7d5006b2eb85f6c34dfaccb9a8
parent6baa9b20a68a88c2fd751cbe8d7652009379351b
sparc32, leon: must protect IRQ controller register with spinlock

The LEON interrupt controller has one single mask register for all
IRQs per CPU, even though the genirq layer protects us from accessing
the same IRQ at the same time other IRQs share the same mask register
and may thus interfere. Some other IRQ controllers has a mask register
or similar per IRQ instead which makes spinlocks unncessary.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/leon_kernel.c