]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ppc64: Replace custom locking code with a spinlock
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 30 Jun 2005 05:17:02 +0000 (15:17 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 30 Jun 2005 05:17:02 +0000 (15:17 +1000)
commit75e6faf803601c5fa8ea32c6d5f22aaa53a76a1b
treeb9e0a5b98e64459ea4eba77cd9bf3839dbb3a0fd
parent09dcf7c95b97a6b8bddb7d7bd5591440b24365c4
[PATCH] ppc64: Replace custom locking code with a spinlock

The hvlpevent_queue (formally ItLpQueue) has a member called xInUseWord
which is used for serialising access to the queue. Because it's a word
(ie. 32 bit) there's a custom 32-bit version of test_and_set_bit() or
thereabouts in ItLpQueue.c.

The xInUseWord is not shared with they hypervisor, so we can replace it
with a spinlock and remove the custom code.

There is also another locking mechanism (ItLpQueueInProcess). This is
redundant because it's only manipulated while the lock's held. Remove it.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/ppc64/kernel/ItLpQueue.c
include/asm-ppc64/iSeries/ItLpQueue.h