[media] IR: plug races in IR raw thread
authorMaxim Levitsky <maximlevitsky@gmail.com>
Mon, 6 Sep 2010 21:26:06 +0000 (18:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 09:54:12 +0000 (07:54 -0200)
commitc6ef1e7fdc752bbaeacb3570cf955ba2ad60c61b
tree0d9fa654950550b6bc1fd5d0c6f1681bdb084666
parentc47d3e7f94a88bbb4c2c441fb34d98a6db32cb8f
[media] IR: plug races in IR raw thread

Unfortunelly (my fault) the kernel thread that now handles IR processing
has classical races in regard to wakeup and stop.
This patch hopefully closes them all.
Tested with module reload running in a loop, while receiver is blasted
with IR data for 10 minutes.

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Acked-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/ir-core-priv.h
drivers/media/IR/ir-raw-event.c