xen: credit2: soft-affinity awareness in gat_fallback_cpu()
authorDario Faggioli <dario.faggioli@citrix.com>
Tue, 29 Aug 2017 09:18:50 +0000 (10:18 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Tue, 29 Aug 2017 09:18:50 +0000 (10:18 +0100)
commita64ccd3970096ffda4e27a13c29ba6b5e32e3243
tree3635a78f0d560547e5496bbdfecb9a617a654221
parent72faea71260197afa916d13611d4aa10875a25fb
xen: credit2: soft-affinity awareness in gat_fallback_cpu()

By, basically, moving all the logic of the function
inside the usual two steps (soft-affinity step and
hard-affinity step) loop.

While there, add two performance counters (in cpu_pick
and in get_fallback_cpu() itself), in order to be able
to tell how frequently it happens that we need to look
for a fallback cpu.

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_credit2.c
xen/include/xen/perfc_defn.h