All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] [REDIFF] Replaces yield() with schedule_timeout()
@ 2004-04-29  0:07 Gustavo Franco
  2004-05-03  1:06 ` Gustavo Franco
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gustavo Franco @ 2004-04-29  0:07 UTC (permalink / raw)
  To: kernel-janitors

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-05-03  1:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-29  0:07 [Kernel-janitors] [REDIFF] Replaces yield() with schedule_timeout() Gustavo Franco
2004-05-03  1:06 ` Gustavo Franco
2004-05-03  1:10 ` Gustavo Franco
2004-05-03  1:24 ` [Kernel-janitors] [REDIFF] Replaces yield() with nicedelay() on Gustavo Franco

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.