V4L/DVB (13776): [Mantis] Use a simple timeout instead, interruptible
authorManu Abraham <abraham.manu@gmail.com>
Fri, 4 Dec 2009 08:29:25 +0000 (05:29 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 17 Jan 2010 13:55:39 +0000 (11:55 -0200)
timeouts sleep unnecessarily too long

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/mantis/mantis_hif.c

index 621dce3eb5d6d30554811cfb2ff0a89f210daf0e..a2359f7e14656d3f62ede2f5b1d3fcefdf58d83c 100644 (file)
@@ -44,9 +44,9 @@ static int mantis_hif_sbuf_opdone_wait(struct mantis_ca *ca)
        struct mantis_pci *mantis = ca->ca_priv;
        int rc = 0;
 
-       if (wait_event_interruptible_timeout(ca->hif_opdone_wq,
-                                            ca->hif_event & MANTIS_SBUF_OPDONE,
-                                            msecs_to_jiffies(500)) == -ERESTARTSYS) {
+       if (wait_event_timeout(ca->hif_opdone_wq,
+                              ca->hif_event & MANTIS_SBUF_OPDONE,
+                              msecs_to_jiffies(500)) == -ERESTARTSYS) {
 
                dprintk(verbose, MANTIS_ERROR, 1, "Adapter(%d) Slot(0): Smart buffer operation timeout !", mantis->num);
                rc = -EREMOTEIO;