All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2/3: 2.6.8 zr36067 driver - use msleep() instead of schedule_timeout()
@ 2004-08-29 19:29 Ronald Bultje
  0 siblings, 0 replies; only message in thread
From: Ronald Bultje @ 2004-08-29 19:29 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, Nishanth Aravamudan, mjpeg-developer

[-- Attachment #1: Type: text/plain, Size: 362 bytes --]

Hi,

attached patch makes the zr36067 driver use msleep() instead of
schedule_timeout() with uninterruptible state. Patch originally
submitted by Nishanth Aravamudan <nacc@us.ibm.com> (7/26).

Ronald

Signed-off-by: Ronald Bultje <rbultje@ronald.bitfreak.net>
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>

-- 
Ronald Bultje <rbultje@ronald.bitfreak.net>

[-- Attachment #2: zoran-use-msleep.diff --]
[-- Type: text/x-patch, Size: 470 bytes --]

Index: linux/drivers/media/video/zoran_device.c
--- linux~zoran-use-msleep/drivers/media/video/zoran_device.c	2004-08-14 12:55:33.000000000 +0200
+++ linux/drivers/media/video/zoran_device.c	2004-08-29 18:29:06.455019400 +0200
@@ -1105,8 +1105,7 @@
 			ZR36057_ISR);
 		btand(~ZR36057_JMC_Go_en, ZR36057_JMC);	// \Go_en
 
-		current->state = TASK_UNINTERRUPTIBLE;
-		schedule_timeout(HZ / 20);
+		msleep(50);
 
 		set_videobus_dir(zr, 0);
 		set_frame(zr, 1);	// /FRAME

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-29 19:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-29 19:29 [PATCH] 2/3: 2.6.8 zr36067 driver - use msleep() instead of schedule_timeout() Ronald Bultje

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.