]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commit
xen: credit2: make the cpu to runqueue map per-cpu
authorDario Faggioli <dario.faggioli@citrix.com>
Fri, 23 Jun 2017 10:54:59 +0000 (12:54 +0200)
committerGeorge Dunlap <george.dunlap@citrix.com>
Fri, 21 Jul 2017 17:21:37 +0000 (18:21 +0100)
commita2c4e5ab59db83a5a580b380864c44d57c9a739b
tree3fa95ed2188e258695710ff8cb140cdebf601d33
parentefda30d5916f8eac538faf59d4338d150e034f1b
xen: credit2: make the cpu to runqueue map per-cpu

Instead of keeping an NR_CPUS big array of int-s,
directly inside csched2_private, use a per-cpu
variable.

That's especially beneficial (in terms of saved
memory) when there are more instance of Credit2 (in
different cpupools), and also helps fitting
csched2_private itself into CPU caches.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/common/sched_credit2.c