All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] [PATCH] - Replaces yield() with
@ 2004-04-14  1:59 Gustavo Franco
  2004-04-15 23:09 ` Randy.Dunlap
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Gustavo Franco @ 2004-04-14  1:59 UTC (permalink / raw)
  To: kernel-janitors

Hi,

I'm new here, and this is my first patch, following the issue described by
Matthew Wilcox: "Calling yield() Considered Harmful" on TODO list.

There is no doubt that isn't necessary replace all yield() calls, but i'm
planning to check each case on the tree.Comments?

Hope that helps,
Gustavo Franco
p.s: This e-mail on the "from" is only for ML traffic, my main e-mail is
stratus at acm.dot org.


--- drivers/cdrom/cdu31a.c.orig 2004-04-13 22:43:55.000000000 -0300
+++ drivers/cdrom/cdu31a.c      2004-04-13 22:44:17.000000000 -0300
@@ -386,7 +386,7 @@ static inline void sony_sleep(void)
        unsigned long flags;
                                                                                         

        if (cdu31a_irq <= 0) {
-               yield();
+               schedule_timeout(1);
        } else {                /* Interrupt driven */
                                                                                         

                save_flags(flags);

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

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

end of thread, other threads:[~2004-04-25 22:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-14  1:59 [Kernel-janitors] [PATCH] - Replaces yield() with Gustavo Franco
2004-04-15 23:09 ` Randy.Dunlap
2004-04-16  2:13 ` Gustavo Franco
2004-04-16  2:27 ` Randy.Dunlap
2004-04-25 19:44 ` Domen Puncer
2004-04-25 22:13 ` Gustavo Franco
2004-04-25 22:46 ` Domen Puncer

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.