xen: sched: provide some scratch space for not putting cpumasks on stack
authorDario Faggioli <dario.faggioli@citrix.com>
Fri, 18 Mar 2016 16:03:51 +0000 (17:03 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 8 Apr 2016 15:03:40 +0000 (16:03 +0100)
commit946416bdddea3be376968389c48ccb8f07f59da0
treefc3580cdd07dbd74a0ed254d2a2408937435a8e4
parentbcd46d3912d0a30bd3681ae595a0b1a4d54ed4b9
xen: sched: provide some scratch space for not putting cpumasks on stack

directly, from schedule.c, for any scheduler that needs
it to use it.

In fact, Credit1 and RTDS needs this already. Credit2 is
also going to need it, for supporting hard affinity
(which is, typically, what requires a lot of cpumask
manipulations, inside various functions).

Therefore, let's define the scratch space at a broader
scope, to limit code duplication in handling it.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/sched_credit.c
xen/common/sched_credit2.c
xen/common/sched_rt.c
xen/common/schedule.c
xen/include/xen/sched-if.h