]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
cpm2: Fix race condition in CPM2 GPIO library.
authorLaurent Pinchart <laurentp@cse-semaphore.com>
Tue, 19 Aug 2008 12:20:23 +0000 (14:20 +0200)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 21 Aug 2008 05:15:54 +0000 (00:15 -0500)
commit639d64456e20cbfc866b18dc03cf9f9babc9c7cd
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