From: Michael Ellerman Date: Thu, 30 Jun 2005 05:17:02 +0000 (+1000) Subject: [PATCH] ppc64: Replace custom locking code with a spinlock X-Git-Tag: v2.6.13-rc2~38^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=719d1cd86780c156f954fc34f34481adac197aec;p=pandora-kernel.git [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 Acked-by: Stephen Rothwell Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed