sched: add .init_pdata hook to the scheduler interface
authorDario Faggioli <dario.faggioli@citrix.com>
Thu, 24 Mar 2016 14:57:30 +0000 (15:57 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 24 Mar 2016 14:57:30 +0000 (15:57 +0100)
commit6095dd2ea7107ca18332a5934803088f239c26b6
tree929622080261987b838a4d232f4792a3c0be248c
parent8686d2a3f6fef8653580a649ec9c94e879eee35f
sched: add .init_pdata hook to the scheduler interface

with the purpose of decoupling the allocation phase and
the initialization one, for per-pCPU data of the schedulers.

This makes it possible to perform the initialization later
in the pCPU bringup/assignement process, when more information
(for instance, the host CPU topology) are available. This,
for now, is important only for Credit2, but it can well be
useful to other schedulers.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/common/schedule.c
xen/include/xen/sched-if.h