xen: sched: factor affinity helpers out of sched_credit.c
authorDario Faggioli <dario.faggioli@citrix.com>
Wed, 26 Jul 2017 14:55:27 +0000 (15:55 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Wed, 26 Jul 2017 14:55:27 +0000 (15:55 +0100)
commitcf3dd5afadfd88dbb6e891a2a29ccfda6788b339
tree1c0b8a75787f7955e154c186067b8fadb5f38dd0
parent6c9abf0e8022807bb7d677570d0775659950ff1a
xen: sched: factor affinity helpers out of sched_credit.c

In fact, we want to be able to use them from any scheduler.

While there, make the moved code use 'v' for struct_vcpu*
variable, like it should be done everywhere.

No functional change intended.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Signed-off-by: Justin T. Weaver <jtweaver@hawaii.edu>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/common/sched_credit.c
xen/include/xen/sched-if.h