summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/v4l1-compat.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-01-29 10:51:00 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-01-29 10:51:00 -0200
commit7c0917f006a519be5e54c6405f54dea61ca06b7a (patch)
tree47a8e3218398355b7ba1cdf59b9390afa003fdc9 /linux/drivers/media/video/v4l1-compat.c
parentb1ccf703c9015bc3257716ffccd33ca147f7a1a8 (diff)
parent68a6fa1ae421b7c28eb6b8365f3adfd08007e7b7 (diff)
downloadmediapointer-dvb-s2-7c0917f006a519be5e54c6405f54dea61ca06b7a.tar.gz
mediapointer-dvb-s2-7c0917f006a519be5e54c6405f54dea61ca06b7a.tar.bz2
commit backport
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/v4l1-compat.c')
-rw-r--r--linux/drivers/media/video/v4l1-compat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux/drivers/media/video/v4l1-compat.c b/linux/drivers/media/video/v4l1-compat.c
index 14b559b16..4a4cb4c57 100644
--- a/linux/drivers/media/video/v4l1-compat.c
+++ b/linux/drivers/media/video/v4l1-compat.c
@@ -204,7 +204,6 @@ static int poll_one(struct file *file, struct poll_wqueues *pwq)
table = &pwq->pt;
for (;;) {
int mask;
- set_current_state(TASK_INTERRUPTIBLE);
mask = file->f_op->poll(file, table);
if (mask & POLLIN)
break;
@@ -213,9 +212,8 @@ static int poll_one(struct file *file, struct poll_wqueues *pwq)
retval = -ERESTARTSYS;
break;
}
- schedule();
+ poll_schedule(pwq, TASK_INTERRUPTIBLE);
}
- set_current_state(TASK_RUNNING);
poll_freewait(pwq);
return retval;
}