]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
credit: recalculate per-cpupool credits when updating timeslice
authorJuergen Gross <jgross@suse.com>
Tue, 2 Feb 2016 13:03:40 +0000 (14:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 2 Feb 2016 13:03:40 +0000 (14:03 +0100)
commitffc342fbb060cd753fc3a5f6fb6f550dd29a2637
tree58c2ccc886779a5b706a5d84ff98f508d18d39d9
parentf2c96ac4dedf4976e46de34c69c2cd8b289c4ef2
credit: recalculate per-cpupool credits when updating timeslice

When modifying the timeslice of the credit scheduler in a cpupool the
cpupool global credit value (n_cpus * credits_per_tslice) isn't
recalculated. This will lead to wrong scheduling decisions later.

Do the recalculation when updating the timeslice.

Signed-off-by: Juergen Gross <jgross@suse.com>
Tested-by: Alan.Robinson <alan.robinson@ts.fujitsu.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
xen/common/sched_credit.c