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)
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>

No differences found