__proc_give_cores() no longer makes a callback
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 9 Mar 2012 21:26:42 +0000 (13:26 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 9 Mar 2012 21:26:42 +0000 (13:26 -0800)
commitad1d92159fe7c732aadbd4773f9554b2c52a0381
treee8286200c2e6c7dc0877c4faccdfc858fa45fdd4
parentb04c6cd644c42adf9ba1dbdb38d3dcf75b21cc7b
__proc_give_cores() no longer makes a callback

The put_idle_cores() callback could deadlock if kscheds ever did smart
things in that function.

Kernel schedulers can do more advanced things than in core_request().
For instance, one could attempt to give some cores to one proc, and if
that fails, just give the same pc_arr to the next in line (assuming it
needs them).  Right now, we don't support partial allocations, mostly
because it's the ksched'd job to know what you want and give no more
than that amount.
kern/include/process.h
kern/src/process.c
kern/src/schedule.c