ChangeSet 1.2065.3.42, 2005/03/12 08:32:02-08:00, [EMAIL PROTECTED]

        [PATCH] media/planb: replace interruptible_sleep_on() with wait_event()
        
        Use wait_event() instead of the deprecated interruptible_sleep_on().  
Current
        code does not check for signals, so interruptible seems unnecessary.
        
        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]>



 planb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/drivers/media/video/planb.c b/drivers/media/video/planb.c
--- a/drivers/media/video/planb.c       2005-03-12 21:33:32 -08:00
+++ b/drivers/media/video/planb.c       2005-03-12 21:33:32 -08:00
@@ -40,6 +40,7 @@
 #include <linux/mm.h>
 #include <linux/sched.h>
 #include <linux/videodev.h>
+#include <linux/wait.h>
 #include <asm/uaccess.h>
 #include <asm/io.h>
 #include <asm/prom.h>
@@ -1609,8 +1610,7 @@
                                }
                                planb_lock(pb);
                                /* empty the grabbing queue */
-                               while(pb->grabbing)
-                                       interruptible_sleep_on(&pb->capq);
+                               wait_event(pb->capq, !pb->grabbing);
                                pb->maxlines = maxlines;
                                pb->win.norm = v.norm;
                                /* Stop overlay if running */
-
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