xen: sched: impove use of cpumask scratch space in Credit1.
authorDario Faggioli <dario.faggioli@citrix.com>
Tue, 17 Jan 2017 17:27:03 +0000 (18:27 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Tue, 24 Jan 2017 17:02:07 +0000 (17:02 +0000)
commitc4fba1161bf28c8ac972f4526b46f7f40fa8d515
tree74f67e4e3449a0f81c66d7a87d7a3b97dcdb90a8
parent7478ebe1602e6bb8242a18840b15757a1d5ad18a
xen: sched: impove use of cpumask scratch space in Credit1.

It is ok to use just cpumask_scratch in csched_runq_steal().
In fact, the cpu parameter comes from the cpu local variable
in csched_load_balance(), which in turn comes from cpu in
csched_schedule(), which is smp_processor_id().

While there, also:
 - move the comment about cpumask_scratch in the header
   where the scratch space is declared;
 - spell more clearly (in that same comment) what are the
   serialization rules.

No functional change intended.

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