]> xenbits.xensource.com Git - people/julieng/xen-unstable.git/commit
cpupools: Make interface more consistent
authorKeir Fraser <keir@xen.org>
Sun, 24 Oct 2010 12:09:50 +0000 (13:09 +0100)
committerKeir Fraser <keir@xen.org>
Sun, 24 Oct 2010 12:09:50 +0000 (13:09 +0100)
commit7e6b926a17db1d63f1b8fd2745776f5369dacb4e
tree753bf45413056dc82c8d309d919a048149ff802b
parent8e5c88afb0fb552ba803fecc1952d01293442d7d
cpupools: Make interface more consistent

The current cpupools code interface is a bit inconsistent.  This
patch addresses this by making the interaction for each
vcpu in a pool look like this:

alloc_vdata() -- allocates and sets up vcpu data
insert_vcpu() -- the vcpu is ready to run in this pool
remove_vcpu() -- take the vcpu out of the pool
free_vdata()  -- delete allocated vcpu data

(Previously, remove_vcpu and free_vdata were combined into a "destroy
vcpu", and insert_vcpu was only called for idle vcpus.)

This also addresses a bug in credit2 which was caused by a
misunderstanding of the cpupools interface.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
xen/common/sched_credit.c
xen/common/sched_credit2.c
xen/common/sched_sedf.c
xen/common/schedule.c
xen/include/xen/sched-if.h