freebsd-skq/sys/sun4v
Matthew D Fleming 08b163fa51 Put the general logic for being a CPU hog into a new function
should_yield().  Use this in various places.  Encapsulate the common
case of check-and-yield into a new function maybe_yield().

Change several checks for a magic number of iterations to use
should_yield() instead.

MFC after:	1 week
2011-02-02 16:35:10 +00:00
..
cddl
compile
conf Follow r213098, kernel POSIX semaphore module is no longer 2010-09-26 01:41:53 +00:00
include Add reader/writer lock around mem_range_attr_get() and mem_range_attr_set(). 2011-01-17 22:58:28 +00:00
mdesc This is a follow-up, cleaning-up commit about recent changes involving 2007-09-11 22:54:09 +00:00
sun4v Put the general logic for being a CPU hog into a new function 2011-02-02 16:35:10 +00:00