]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/cpm1: Fix race condition in CPM1 GPIO library.
authorJochen Friedrich <jochen@scram.de>
Wed, 27 Aug 2008 10:32:25 +0000 (12:32 +0200)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 16 Sep 2008 18:43:24 +0000 (13:43 -0500)
commit3122e6227fcbbc00b10d833ec7787b31b7fafed0
tree6c5caddb00117c566dd5c4a7e9eb654dfdaa6b10
parent3315e8bad3cb0be3a1f4132f36bc9ee12818210b
powerpc/cpm1: Fix race condition in CPM1 GPIO library.

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

Based on the CPM2 patch from Laurent Pinchart <laurentp@cse-semaphore.com>,
commit 01f581d3917e77d0f5af9742396602d61b3d8a17.

Signed-off-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/cpm1.c