[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v2 2/2] arinc: Add poolid parameter to scheduler get/set functions
From: Nathan Studer <nate.studer@xxxxxxxxxxxxxxx> Signed-off-by: Nathan Studer <nate.studer@xxxxxxxxxxxxxxx> --- v2: Remove _v2 suffixes --- tools/libxc/xc_arinc653.c | 6 ++++-- tools/libxc/xenctrl.h | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/libxc/xc_arinc653.c b/tools/libxc/xc_arinc653.c index fe2ddcb..5d61c1a 100644 --- a/tools/libxc/xc_arinc653.c +++ b/tools/libxc/xc_arinc653.c @@ -29,6 +29,7 @@ int xc_sched_arinc653_schedule_set( xc_interface *xch, + uint32_t cpupool_id, struct xen_sysctl_arinc653_schedule *schedule) { int rc; @@ -42,7 +43,7 @@ xc_sched_arinc653_schedule_set( return -1; sysctl.cmd = XEN_SYSCTL_scheduler_op; - sysctl.u.scheduler_op.cpupool_id = 0; + sysctl.u.scheduler_op.cpupool_id = cpupool_id; sysctl.u.scheduler_op.sched_id = XEN_SCHEDULER_ARINC653; sysctl.u.scheduler_op.cmd = XEN_SYSCTL_SCHEDOP_putinfo; set_xen_guest_handle(sysctl.u.scheduler_op.u.sched_arinc653.schedule, @@ -58,6 +59,7 @@ xc_sched_arinc653_schedule_set( int xc_sched_arinc653_schedule_get( xc_interface *xch, + uint32_t cpupool_id, struct xen_sysctl_arinc653_schedule *schedule) { int rc; @@ -71,7 +73,7 @@ xc_sched_arinc653_schedule_get( return -1; sysctl.cmd = XEN_SYSCTL_scheduler_op; - sysctl.u.scheduler_op.cpupool_id = 0; + sysctl.u.scheduler_op.cpupool_id = cpupool_id; sysctl.u.scheduler_op.sched_id = XEN_SCHEDULER_ARINC653; sysctl.u.scheduler_op.cmd = XEN_SYSCTL_SCHEDOP_getinfo; set_xen_guest_handle(sysctl.u.scheduler_op.u.sched_arinc653.schedule, diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h index 4ac6b8a..cced208 100644 --- a/tools/libxc/xenctrl.h +++ b/tools/libxc/xenctrl.h @@ -796,11 +796,13 @@ int xc_sched_credit2_domain_get(xc_interface *xch, int xc_sched_arinc653_schedule_set( xc_interface *xch, + uint32_t cpupool_id, struct xen_sysctl_arinc653_schedule *schedule); int xc_sched_arinc653_schedule_get( xc_interface *xch, + uint32_t cpupool_id, struct xen_sysctl_arinc653_schedule *schedule); /** -- 1.7.9.5 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |