Proc state work: WAITING helpers and is_mcp helper
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 16 Sep 2011 00:06:16 +0000 (17:06 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:36:07 +0000 (17:36 -0700)
commit271fe4d6c9ff35c97146f5d335b4f41ee284e8f1
tree1e62b7b62e55844d660922596ae7c36fb4851354
parent3b02a2a1399ff198573d395d7c274ac9b7077803
Proc state work: WAITING helpers and is_mcp helper

The __proc_wakeup() function can be called whether the process is
WAITING or not - it doesn't particularly care.

Instead of having multiple WAITING states, I'm going with the is_mcp
bool.  This simplifies event code and other places that don't care about
the _M nature of the process.  We'll see if this is a good idea or not.
I might slim down the other states as well, though those seem to work
well with the switch statements.
kern/include/env.h
kern/include/process.h
kern/src/process.c
kern/src/resource.c