sparc64: Make prom entry spinlock NMI safe.
commit6b485cd307ba56876d20b6d443a02f3cc5bbb7a2
authorDavid S. Miller <davem@davemloft.net>
Wed, 3 Mar 2010 17:06:03 +0000 (3 09:06 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 23:01:19 +0000 (1 16:01 -0700)
tree2b158efc315b22ea2212fb71ce8c0405d72a8ab9
parent38b5c1269e7c1582d25a2ffd71d9289d8520d9b8
sparc64: Make prom entry spinlock NMI safe.

[ Upstream commit 8a4fd1e4922413cfdfa6c51a59efb720d904a5eb ]

If we do something like try to print to the OF console from an NMI
while we're already in OpenFirmware, we'll deadlock on the spinlock.

Use a raw spinlock and disable NMIs when we take it.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sparc/prom/p1275.c