diff options
author | Manu Abraham <abraham.manu@gmail.com> | 2009-12-04 03:29:25 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-01-17 08:55:39 -0500 |
commit | ac8f04d2723b3de7c36430d67401ce89c858e117 (patch) | |
tree | 3fca1fa08368fcf655124254d5aad82379b682f0 /drivers/media | |
parent | b9fd5877463605b91743552b4989666792bf4fbc (diff) |
V4L/DVB (13776): [Mantis] Use a simple timeout instead, interruptible
timeouts sleep unnecessarily too long
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/mantis/mantis_hif.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb/mantis/mantis_hif.c b/drivers/media/dvb/mantis/mantis_hif.c index 621dce3eb5d6..a2359f7e1465 100644 --- a/drivers/media/dvb/mantis/mantis_hif.c +++ b/drivers/media/dvb/mantis/mantis_hif.c | |||
@@ -44,9 +44,9 @@ static int mantis_hif_sbuf_opdone_wait(struct mantis_ca *ca) | |||
44 | struct mantis_pci *mantis = ca->ca_priv; | 44 | struct mantis_pci *mantis = ca->ca_priv; |
45 | int rc = 0; | 45 | int rc = 0; |
46 | 46 | ||
47 | if (wait_event_interruptible_timeout(ca->hif_opdone_wq, | 47 | if (wait_event_timeout(ca->hif_opdone_wq, |
48 | ca->hif_event & MANTIS_SBUF_OPDONE, | 48 | ca->hif_event & MANTIS_SBUF_OPDONE, |
49 | msecs_to_jiffies(500)) == -ERESTARTSYS) { | 49 | msecs_to_jiffies(500)) == -ERESTARTSYS) { |
50 | 50 | ||
51 | dprintk(verbose, MANTIS_ERROR, 1, "Adapter(%d) Slot(0): Smart buffer operation timeout !", mantis->num); | 51 | dprintk(verbose, MANTIS_ERROR, 1, "Adapter(%d) Slot(0): Smart buffer operation timeout !", mantis->num); |
52 | rc = -EREMOTEIO; | 52 | rc = -EREMOTEIO; |