]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/rtas: Turn rtas lock into a raw spinlock
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 16 Jun 2009 16:42:49 +0000 (16:42 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 26 Jun 2009 04:37:27 +0000 (14:37 +1000)
commitb5f08b6de1fbff4b87eeb6b42808258b0826f097
tree753cfb89d52d5732142bb424b5c72ffc869db0a8
parentcc1b73a876d888f2851ff58a83451e0955f6c62a
powerpc/rtas: Turn rtas lock into a raw spinlock

RTAS currently uses a normal spinlock. However it can be called from
contexts where this is not necessarily a good idea. For example, it
can be called while syncing timebases, with the core timebase being
frozen. Unfortunately, that will deadlock in case of lock contention
when spinlock debugging is enabled as the spin lock debugging code
will try to use __delay() which ... relies on the timebase being
enabled.

Also RTAS can be used in some low level IRQ handling code path so it
may as well be a raw spinlock for -rt sake.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/rtas.h
arch/powerpc/kernel/rtas.c