]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sparc64: Make prom entry spinlock NMI safe.
authorDavid S. Miller <davem@davemloft.net>
Wed, 3 Mar 2010 17:06:03 +0000 (09:06 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 22:58:16 +0000 (15:58 -0700)
commita6c4c1c5057d956af87679861f5eeb80c72e3a5e
tree6f98c62ed780865a8e2955240bc03399378f25fd
parent8c2b12e12010928b6c5dd06447eccb99b0629515
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