Mark Johnston 02fb845bbf Fix a few uses of kern_yield() in the TTM and the LinuxKPI.
kern_yield(0) effectively causes the calling thread to be rescheduled
immediately since it resets the thread's priority to the highest possible
value. This can cause livelocks when the pattern
"while (!trylock()) kern_yield(0);" is used since the thread holding the
lock may linger on the runqueue for the CPU on which the looping thread is
running.

MFC after:	1 week
2017-05-18 18:35:14 +00:00
..
2017-05-18 08:25:07 +00:00
2017-05-18 18:24:11 +00:00
2017-05-16 23:31:52 +00:00
2017-05-09 05:08:47 +00:00
2017-05-07 14:59:45 +00:00