Minimizes proc_locking in core_request
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 2 Mar 2012 22:54:21 +0000 (14:54 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 2 Mar 2012 22:54:21 +0000 (14:54 -0800)
commit6ae7771f106cf84a9728d77e260f15ea731ba5df
treed4b7506d4912963059745dd283f58426538d6d1b
parent4f37823e2a7043e1eb22eb079a9fc648560f9eb3
Minimizes proc_locking in core_request

__core_request() now needs the ksched lock held, instead of using the
proclock.  This does mean that you can have two concurrent core_requests
for different processes, but since the bulk of core_request is really
just dealing with the ksched's structures, this style makes more sense.

Also gets rid of the old return value of core_req, since we don't use
it.
kern/src/schedule.c