Calling yield() Considered Harmful
On Tue, 7 Oct 2003 17:42:20 +0100 Matthew Wilcox <[email protected]> wrote:
|
| In 2.6, the semantics of calling yield() changed from "sleep for a
| bit" to "I really don't want to run for a while". This matches POSIX
| better, but there's a lot of drivers still using yield() when they mean
| cond_resched(), schedule() or even schedule_timeout().
|
| Here's a list:
|
| $ find drivers/ -type f |xargs grep 'yield[^a-z]*('
..
|
| If you look at how sony_sleep() is typically used, what you really want to
| do is schedule_timeout(1). But someone needs to look at all these cases..
| do I hear a volunteer?
|
| -- Added to TODO list.
--
~Randy
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors