Add a parlib control variable for yielding
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 27 Apr 2016 18:04:13 +0000 (14:04 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 2 May 2016 21:11:15 +0000 (17:11 -0400)
commitfdce6a1482e5a5cc4fa29943e5d05003cfb5a5cf
tree1f83ac0caf92c0fa2b538ba68b69a5bf3ab07614
parent7d0e586a25a3b3aba1847b7147defbe8a21462f3
Add a parlib control variable for yielding

This allows applications to control whether or not their 2LS yields.  You
might want to never yield for greedy performance or testing.

Note that the 2LS can ask for more vcores, if it wants/needs it.  It just
won't yield them.  This should be fine.  Apps can always ask for vcores
directly, which the 2LS won't yield.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/parlib/include/parlib/parlib.h
user/parlib/parlib.c
user/parlib/vcore.c