All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gustavo Franco <stratus@acm.org>
To: kernel-janitors@vger.kernel.org
Subject: [Kernel-janitors] [REDIFF] Replaces yield() with schedule_timeout()
Date: Thu, 29 Apr 2004 00:07:21 +0000	[thread overview]
Message-ID: <40904739.9060501@acm.org> (raw)

Hi,

I'm sending only this rediff now, if it's ok i'll send the three on my 
queue.

I want to say thank you for all the suggestions.

Hope that helps,
Gustavo Franco

--- drivers/cdrom/sonycd535.c.orig      2004-04-28 20:50:46.000000000 -0300
+++ drivers/cdrom/sonycd535.c   2004-04-28 20:50:55.000000000 -0300
@@ -342,7 +342,8 @@
 sony_sleep(void)
 {
        if (sony535_irq_used <= 0) {    /* poll */
-               yield();
+               set_current_state(TASK_INTERRUPTIBLE);
+               schedule_timeout(1);
        } else {        /* Interrupt driven */
                DEFINE_WAIT(wait);
                                                                                                   


_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

             reply	other threads:[~2004-04-29  0:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-29  0:07 Gustavo Franco [this message]
2004-05-03  1:06 ` [Kernel-janitors] [REDIFF] Replaces yield() with schedule_timeout() Gustavo Franco
2004-05-03  1:10 ` Gustavo Franco
2004-05-03  1:24 ` [Kernel-janitors] [REDIFF] Replaces yield() with nicedelay() on Gustavo Franco

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=40904739.9060501@acm.org \
    --to=stratus@acm.org \
    --cc=kernel-janitors@vger.kernel.org \
    /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.