]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Mar 2010 17:06:03 +0000 (09:06 -0800)
commitb8ac9f7ae422f8f235364e26d34d65feb6785b78
tree3e46821fac9d3de604466b55345c2b267d157355
parent4afe8d1b566c56607a9517ca0df04ce0eba8efcc
sparc64: Make prom entry spinlock NMI safe.

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>
arch/sparc/prom/p1275.c