kthread_yield()
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 25 Oct 2012 19:34:11 +0000 (12:34 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 25 Oct 2012 19:34:11 +0000 (12:34 -0700)
commit179cc551e0cf223cbd4058d42b6c44e045f4df31
tree18fcd9192cbe6a27b4fb7cd48223846ffe25237a
parente3b68bbf9c446863624bc3ee744f7e213f328e41
kthread_yield()

Caller is suspended in a kthread, and will get woken up via RKM to the
calling core.  In essence, it pauses the kthread and allows other RKMs
to run.

If the ksched does anything fancy, we could do other things, like send
the kthread to another core.
kern/include/kthread.h
kern/src/kthread.c