aboutsummaryrefslogtreecommitdiff
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorGravatar Michael Ellerman <michael@ellerman.id.au> 2005-06-30 15:17:02 +1000
committerGravatar Paul Mackerras <paulus@samba.org> 2005-06-30 15:17:02 +1000
commit719d1cd86780c156f954fc34f34481adac197aec (patch)
treeb9e0a5b98e64459ea4eba77cd9bf3839dbb3a0fd /include/linux/device.h
parent[PATCH] ppc64: Formatting cleanups in arch/ppc64/kernel/ItLpQueue.c (diff)
downloadlinux-719d1cd86780c156f954fc34f34481adac197aec.tar.gz
linux-719d1cd86780c156f954fc34f34481adac197aec.tar.bz2
linux-719d1cd86780c156f954fc34f34481adac197aec.zip
[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>
Diffstat (limited to 'include/linux/device.h')
0 files changed, 0 insertions, 0 deletions