]> git.baikalelectronics.ru Git - kernel.git/commit
[media] lirc_zilog: fix spinning rx thread
authorJarod Wilson <jarod@redhat.com>
Wed, 8 Jun 2011 21:56:56 +0000 (18:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 1 Jul 2011 19:32:27 +0000 (16:32 -0300)
commit6f2d385a8252b890a7438b028c19dbec9019bd99
tree5df3cc1a472ff86b8e05bff0ac29802e84ac280f
parent4e5d537a2f58cbc7d427fbb584bc14c4f2f09981
[media] lirc_zilog: fix spinning rx thread

We were calling schedule_timeout with the rx thread's task state still
at TASK_RUNNING, which it shouldn't be. Make sure we call
set_current_state(TASK_INTERRUPTIBLE) *before* schedule_timeout, and
we're all good here. I believe this problem was mistakenly introduced in
commit 9dad37c113d5231367a0dd6e9b5a54abbd0ed170, and I'm not sure how I
missed it before, as I swear I tested the patchset that was included in,
but alas, stuff happens...

Acked-by: Andy Walls <awalls@md.metrocast.net>
CC: stable@kernel.org
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/lirc/lirc_zilog.c