xen/sched: add a percpu resource index
authorJuergen Gross <jgross@suse.com>
Wed, 2 Oct 2019 07:27:31 +0000 (09:27 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Oct 2019 10:56:55 +0000 (12:56 +0200)
commit6a4d4066756ca655026b73dfa7b5e8f9a001b9a3
tree999234d29cb518197e74475a54c261ea8b075673
parentc0db6570c44cf7a1d7b6cc3799b61810df7449f0
xen/sched: add a percpu resource index

Add a percpu variable holding the index of the cpu in the current
sched_resource structure. This index is used to get the correct vcpu
of a sched_unit on a specific cpu.

For now this index will be zero for all cpus, but with core scheduling
it will be possible to have higher values, too.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Dario Faggioli <dfaggioli@suse.com>
xen/common/schedule.c