All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ronald Bultje <rbultje@ronald.bitfreak.net>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org,
	Nishanth Aravamudan <nacc@us.ibm.com>,
	mjpeg-developer@lists.sourceforge.net
Subject: [PATCH] 2/3: 2.6.8 zr36067 driver - use msleep() instead of schedule_timeout()
Date: Sun, 29 Aug 2004 21:29:04 +0200	[thread overview]
Message-ID: <1093807744.26498.0.camel@localhost.localdomain> (raw)

[-- 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

                 reply	other threads:[~2004-08-29 19:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1093807744.26498.0.camel@localhost.localdomain \
    --to=rbultje@ronald.bitfreak.net \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mjpeg-developer@lists.sourceforge.net \
    --cc=nacc@us.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.