All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] [PATCH] Replaces yield() with schedule_timeout()
@ 2004-04-24 18:34 Gustavo Franco
  2004-04-24 19:28 ` Gustavo Franco
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Gustavo Franco @ 2004-04-24 18:34 UTC (permalink / raw)
  To: kernel-janitors

Hi list,

Following what i've said, i'm looking each yield() call to check if it 
needs to be
replaced.I'll send two more patches today and a status message, if 
everything
is ok, i'm planning to complete this task on the next week.

Thanks,
Gustavo Franco

--- drivers/scsi/megaraid.c.orig     2004-04-24 13:54:26.000000000 -0300
+++ drivers/scsi/megaraid.c  2004-04-24 13:54:36.000000000 -0300
@@ -1691,7 +1691,7 @@
        for (counter = 0; counter < 10000; counter++) {
                if (!mbox->m_in.busy)
                        return 0;
-               udelay(100); yield();
+               udelay(100); schedule_timeout(1);
        }
        return -1;              /* give up after 1 second */
 }

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

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

end of thread, other threads:[~2004-04-28 21:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-24 18:34 [Kernel-janitors] [PATCH] Replaces yield() with schedule_timeout() Gustavo Franco
2004-04-24 19:28 ` Gustavo Franco
2004-04-24 19:35 ` Gustavo Franco
2004-04-25 18:38 ` [Kernel-janitors] [PATCH] Replaces yield() with Domen Puncer
2004-04-25 23:10 ` [Kernel-janitors] [PATCH] Replaces yield() with schedule_timeout() Gustavo Franco
2004-04-25 23:25 ` [Kernel-janitors] [PATCH] Replaces yield() with Randy.Dunlap
2004-04-26  0:47 ` [Kernel-janitors] [PATCH] Replaces yield() with schedule_timeout() Gustavo Franco
2004-04-26  1:29 ` [Kernel-janitors] [PATCH] Replaces yield() with Randy.Dunlap
2004-04-26 12:23 ` [Kernel-janitors] [PATCH] Replaces yield() with schedule_timeout() Felipe W Damasio
2004-04-28 21:03 ` [Kernel-janitors] [PATCH] Replaces yield() with maximilian attems
2004-04-28 21:07 ` Randy.Dunlap
2004-04-28 21:13 ` [Kernel-janitors] [PATCH] Replaces yield() with schedule_timeout() Felipe W Damasio

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.