freebsd-dev/sys/sparc64
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
..
central Enroll these drivers in multipass probing. The motivation behind this 2009-12-22 21:02:46 +00:00
compile
conf Now userland POSIX semaphore is based on umtx. The kernel module 2010-09-24 09:04:16 +00:00
ebus Provide for multiple, cascaded PICs on PowerPC systems, and extend the 2010-06-18 14:06:27 +00:00
fhc - Take advantage of the INTCLR_* macros. 2010-03-31 22:19:00 +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
isa Provide for multiple, cascaded PICs on PowerPC systems, and extend the 2010-06-18 14:06:27 +00:00
pci Inherit the APB and the generic OFW PCI-PCI bridge driver from the generic 2011-01-04 16:21:14 +00:00
sbus Reserve INTR_MD[1-4] similarly to what BUS_DMA_BUS[1-4] are intended for 2011-01-04 16:11:32 +00:00
sparc64 Put the general logic for being a CPU hog into a new function 2011-02-02 16:35:10 +00:00