sched: print information about scheduling granularity
authorSergey Dyasli <sergey.dyasli@citrix.com>
Wed, 6 May 2020 10:00:24 +0000 (11:00 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 7 May 2020 17:58:04 +0000 (18:58 +0100)
commit35b819c45c4603fdb1d400925d6b2e6f8689a9d5
tree8f5b78e545e8761d381847e684000af2558c1046
parent64b1da5a2fcf37e3542c277fde194ff3e8bba2d2
sched: print information about scheduling granularity

Currently it might be not obvious which scheduling mode (e.g. core-
scheduling) is being used by the scheduler. Alleviate this by printing
additional information about the selected granularity per-cpupool.

Note: per-cpupool granularity selection is not implemented yet. Every
      cpupool gets its granularity from the single global value.

Take this opportunity to introduce struct sched_gran_name array and
refactor sched_select_granularity().

Signed-off-by: Sergey Dyasli <sergey.dyasli@citrix.com>
Acked-by: Dario Faggioli <dfaggioli@suse.com>
xen/common/sched/cpupool.c