cpm2: Fix race condition in CPM2 GPIO library.
commit639d64456e20cbfc866b18dc03cf9f9babc9c7cd
authorLaurent Pinchart <laurentp@cse-semaphore.com>
Tue, 19 Aug 2008 12:20:23 +0000 (19 14:20 +0200)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 21 Aug 2008 05:15:54 +0000 (21 00:15 -0500)
tree0e593d89118b44a500a2995af84d0f4e988affc5
parent61a4e9e91dd3916ef91aa4899b7271bba0248677
cpm2: Fix race condition in CPM2 GPIO library.

The CPM2 GPIO library code uses the non thread-safe clrbits32/setbits32
macros. This patch protects them with a spinlock.

Signed-off-by: Laurent Pinchart <laurentp@cse-semaphore.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/cpm_common.c