summaryrefslogtreecommitdiffstats
path: root/lib/kasprintf.c
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>2012-03-20 14:05:40 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-04-10 15:41:21 -0300
commit004ac38859c5bbcc4ffccc37d33be5e467d61c28 (patch)
tree868d728af1df65d74de65eb8007deeb9ee32c2b0 /lib/kasprintf.c
parent28638601cf2440a7335eb2478b773dcc63e29e7e (diff)
downloadop-kernel-dev-004ac38859c5bbcc4ffccc37d33be5e467d61c28.zip
op-kernel-dev-004ac38859c5bbcc4ffccc37d33be5e467d61c28.tar.gz
[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>
Diffstat (limited to 'lib/kasprintf.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud