Hi, Please consider applying.
Description: Use wait_event_interruptible() instead of the deprecated interruptible_sleep_on(). Patch is compile-tested. Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]> --- 2.6.11-rc2-kj-v/drivers/media/video/zoran_device.c 2005-01-24 09:34:08.000000000 -0800 +++ 2.6.11-rc2-kj/drivers/media/video/zoran_device.c 2005-01-24 16:07:07.000000000 -0800 @@ -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 @@ wait_grab_pending (struct zoran *zr) 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); ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users