aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_sedf.c
diff options
context:
space:
mode:
authorsd386@font.cl.cam.ac.uk <sd386@font.cl.cam.ac.uk>2005-01-28 11:51:45 +0000
committersd386@font.cl.cam.ac.uk <sd386@font.cl.cam.ac.uk>2005-01-28 11:51:45 +0000
commitb1cbe136f63e49928273d8cde72accbf1b65a9d2 (patch)
tree5496017bf78383396f4336351ae5bc39a76c40a6 /tools/libxc/xc_sedf.c
parenta36ea62807ae1ee2b513aa03f65f10a7ee5c2d68 (diff)
downloadxen-b1cbe136f63e49928273d8cde72accbf1b65a9d2.tar.gz
xen-b1cbe136f63e49928273d8cde72accbf1b65a9d2.tar.bz2
xen-b1cbe136f63e49928273d8cde72accbf1b65a9d2.zip
bitkeeper revision 1.1159.170.102 (41fa2751heRkQ76AYa9Oe-6cOyJuLw)
Enhanced SEDF scheduler
Diffstat (limited to 'tools/libxc/xc_sedf.c')
-rw-r--r--tools/libxc/xc_sedf.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/tools/libxc/xc_sedf.c b/tools/libxc/xc_sedf.c
index 92c052fe23..a3a0598a7d 100644
--- a/tools/libxc/xc_sedf.c
+++ b/tools/libxc/xc_sedf.c
@@ -11,7 +11,7 @@
#include "xc_private.h"
int xc_sedf_domain_set(int xc_handle,
- u32 domid, u64 period, u64 slice)
+ u32 domid, u64 period, u64 slice,u64 latency, u16 extratime,u16 weight)
{
dom0_op_t op;
struct sedf_adjdom *p = &op.u.adjustdom.u.sedf;
@@ -21,12 +21,15 @@ int xc_sedf_domain_set(int xc_handle,
op.u.adjustdom.sched_id = SCHED_SEDF;
op.u.adjustdom.direction = SCHED_INFO_PUT;
- p->period = period;
- p->slice = slice;
+ p->period = period;
+ p->slice = slice;
+ p->latency = latency;
+ p->extratime = extratime;
+ p->weight = weight;
return do_dom0_op(xc_handle, &op);
}
-int xc_sedf_domain_get(int xc_handle, u32 domid, u64 *period, u64 *slice)
+int xc_sedf_domain_get(int xc_handle, u32 domid, u64 *period, u64 *slice, u64* latency, u16* extratime, u16* weight)
{
dom0_op_t op;
int ret;
@@ -39,7 +42,10 @@ int xc_sedf_domain_get(int xc_handle, u32 domid, u64 *period, u64 *slice)
ret = do_dom0_op(xc_handle, &op);
- *period = p->period;
- *slice = p->slice;
+ *period = p->period;
+ *slice = p->slice;
+ *latency = p->latency;
+ *extratime = p->extratime;
+ *weight = p->weight;
return ret;
}