Refactor to move alloc stuff to corealloc.c (4/7)
authorKevin Klues <klueska@cs.berkeley.edu>
Tue, 29 Sep 2015 00:45:43 +0000 (17:45 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 24 Nov 2015 19:48:50 +0000 (14:48 -0500)
commit347dbc4f6960f36133f81e968edc4f9fd36dd340
treeb90d51c9ed83d32252048a90dff5fd78c1883ed7
parentd34b7b073c5cec8c06d7be04393d3dfa7a5fc3cc
Refactor to move alloc stuff to corealloc.c (4/7)

This commit moves the primary logic of the get_any_idle_core(),
get_specific_idle_core(), put_idle_core() functions from schedule.c into
corealloc.c. The 'get' calls are intended to allow external code to extract
idle cores from consideration by the core allocation algorithm.  Once
obtained, the core allocation algorithm forgets about them until they are
reinserted via a call to put_idle_core().

Signed-off-by: Kevin Klues <klueska@cs.berkeley.edu>
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/corerequest.h
kern/src/corealloc.c
kern/src/schedule.c