summaryrefslogtreecommitdiffstats
path: root/lib/libkvm
diff options
context:
space:
mode:
authormdf <mdf@FreeBSD.org>2011-02-02 16:35:10 +0000
committermdf <mdf@FreeBSD.org>2011-02-02 16:35:10 +0000
commitb291e9a36525d7da10edd8e2df1a5b70f92905af (patch)
tree65ff6d1131476610f63482b561b568602f898ff1 /lib/libkvm
parent95c40e7f0914505b7f251ea147472c9de5e76cec (diff)
downloadFreeBSD-src-b291e9a36525d7da10edd8e2df1a5b70f92905af.zip
FreeBSD-src-b291e9a36525d7da10edd8e2df1a5b70f92905af.tar.gz
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
Diffstat (limited to 'lib/libkvm')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud