First step to move corerequest API from schedule.c
authorleymariv <valmon.leymarie@gmail.com>
Wed, 23 Sep 2015 20:57:59 +0000 (13:57 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 24 Nov 2015 19:48:50 +0000 (14:48 -0500)
commitc70fc1c316f0f5c31f6c6d6e8c7d2dd89a5e962e
tree1e4dbe7c1c2a23aeb9d9c4815cf961a1b2396238
parent63c72d8a58dc11457604164207075d6351e9c0bb
First step to move corerequest API from schedule.c

This is the first step to refactor the akaros kernel scheduler to move
the core-provisioning and core-allocation APIs into 3 new files:
corerequest.h, coreprov.c and corealloc.c. The corerequest.h file
contains the full API for both allocating and provisioning cores, while
the coreprov.c and corealloc.c files implement the provisiong and
allocation APIs respectively.  We separate these implementation so that
alternate core provisioning and core allocation strategies can be
implemented without duplicating code.

In the next commits we will eventually move the code for provisioning
into coreprov.c and the code for core allocation into corealloc.c

Signed-off-by: Kevin Klues <klueska@cs.berkeley.edu>
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/corerequest.h [new file with mode: 0644]
kern/src/Kbuild
kern/src/corealloc.c [new file with mode: 0644]
kern/src/coreprov.c [new file with mode: 0644]
kern/src/schedule.c