linux/drivers/media
Srinivas Kandagatla 004ac38859 [media] [3.3.0] ir-raw: remove BUG_ON in ir_raw_event_thread
This patch removes BUG_ON in ir_raw_event_thread which IMO is a
over-kill, and this kills the ir_raw_event_thread too. With a bit of
additional logic in this patch, we nomore need to kill this thread.
Other disadvantage of having a BUG-ON is,
wake_up_process(dev->raw->thread) called on dead thread via
ir_raw_event_handle will result in total lockup in SMP system.

Advantage of this patch is ir-raw event thread is left in a usable state
even if the fifo does not have enough bytes.

This patch sets the thread into TASK_INTERRUPTIBLE if raw-fifo has less
then sizeof(struct ir_raw_event) bytes.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-04-10 15:41:21 -03:00
..
common [media] fc0011: Reduce number of retries 2012-04-09 14:54:11 -03:00
dvb [media] mxl111sf: remove an unused variable 2012-04-09 14:57:20 -03:00
radio [media] radio-rtrack2: add missing slab.h 2012-03-30 16:41:29 -03:00
rc [media] [3.3.0] ir-raw: remove BUG_ON in ir_raw_event_thread 2012-04-10 15:41:21 -03:00
video [media] i.MX2: eMMa-PrP: Allow userptr IO mode 2012-04-10 15:40:08 -03:00
Kconfig [media] DVB: dvb-net, make the kconfig text helpful 2011-07-27 17:53:09 -03:00
Makefile
media-device.c [media] media: fix truncated entity specification 2011-12-20 09:31:50 -02:00
media-devnode.c [media] media: Initialize the media core with subsys_initcall() 2012-03-19 19:02:22 -03:00
media-entity.c [media] media: Properly handle link flags in link setup, link notify callback 2011-04-17 07:43:32 -03:00