ChangeSet 1.2065.3.38, 2005/03/12 08:30:55-08:00, [EMAIL PROTECTED]

        [PATCH] media/zoran_device: replace interruptible_sleep_on() with 
wait_event_interruptible()
        
        Use wait_event_interruptible() instead of the deprecated
        interruptible_sleep_on().  Patch is compile-tested.
        
        Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>
        Signed-off-by: Domen Puncer <[EMAIL PROTECTED]>
        Signed-off-by: Gerd Knorr <[EMAIL PROTECTED]>
        Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
        Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>



 zoran_device.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)


diff -Nru a/drivers/media/video/zoran_device.c 
b/drivers/media/video/zoran_device.c
--- a/drivers/media/video/zoran_device.c        2005-03-12 21:32:41 -08:00
+++ b/drivers/media/video/zoran_device.c        2005-03-12 21:32:41 -08:00
@@ -46,6 +46,7 @@
 #include <linux/video_decoder.h>
 #include <linux/video_encoder.h>
 #include <linux/delay.h>
+#include <linux/wait.h>
 
 #include <asm/io.h>
 
@@ -696,11 +697,10 @@
        if (!zr->v4l_memgrab_active)
                return 0;
 
-       while (zr->v4l_pend_tail != zr->v4l_pend_head) {
-               interruptible_sleep_on(&zr->v4l_capq);
-               if (signal_pending(current))
-                       return -ERESTARTSYS;
-       }
+       wait_event_interruptible(zr->v4l_capq,
+                       (zr->v4l_pend_tail == zr->v4l_pend_head));
+       if (signal_pending(current))
+               return -ERESTARTSYS;
 
        spin_lock_irqsave(&zr->spinlock, flags);
        zr36057_set_memgrab(zr, 0);
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to