Skip to contentSkip to conversation

2/3: 2.6.8 zr36067 driver - use msleep() instead of schedule_timeout()

PATCH New Ronald Bultje 1 participant 1 message Aug 29, 2004 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2/3: 2.6.8 zr36067 driver - use msleep() instead of schedule_timeout()

Hi,

attached patch makes the zr36067 driver use msleep() instead of schedule_timeout() with uninterruptible state. Patch originally submitted by Nishanth Aravamudan <[email protected]> (7/26).

Ronald

Signature · 1 line
Ronald Bultje <[email protected]>

Index: linux/drivers/media/video/zoran_device.c

drivers/media/video/zoran_device.c +1 -2
@@ -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