parlib: Fix assertion in cpu_relax_vc()
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 2 Mar 2017 17:45:47 +0000 (12:45 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 2 Mar 2017 18:01:29 +0000 (13:01 -0500)
commit2ee62d285f561d04df18f06b912a4b25a2e3b660
treec0bb3b6964da0fc75cd4287a06139fd110fb77ac
parentd763bd5cd73b05545df5d6a24baae5b8048f2a6b
parlib: Fix assertion in cpu_relax_vc()

It's okay for a uthread to do this, but they must have notifications
disabled, such that the rest of the system (kernel and user code on other
cores) thinks this vcore is running in vcore context.

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