]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Input: fix locking in force-feedback core
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 26 Jun 2008 15:30:02 +0000 (11:30 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 30 Jun 2008 13:26:02 +0000 (09:26 -0400)
commit656acd2bbc4ce7f224de499ee255698701396c48
tree8a6b0077d0bec8fec96ae3dfe28389c2909e6051
parent4bbff7e408a54cce88d26191191e8bcda2a60d55
Input: fix locking in force-feedback core

The newly added event_lock spinlock in the input core disallows sleeping
and therefore using mutexes in event handlers. Convert force-feedback
core to rely on event_lock instead of mutex to protect slots allocated
for fore-feedback effects. The original mutex is still used to serialize
uploading and erasing of effects.

Reported-by: Anssi Hannula <anssi.hannula@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/ff-core.c