aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ocaml/libs/xl/xenlight_stubs.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ocaml/libs/xl/xenlight_stubs.c')
-rw-r--r--tools/ocaml/libs/xl/xenlight_stubs.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/ocaml/libs/xl/xenlight_stubs.c b/tools/ocaml/libs/xl/xenlight_stubs.c
index 2ba07fc579..c712b2bd01 100644
--- a/tools/ocaml/libs/xl/xenlight_stubs.c
+++ b/tools/ocaml/libs/xl/xenlight_stubs.c
@@ -496,37 +496,37 @@ value stub_xl_cputopology_get(value unit)
CAMLreturn(topology);
}
-value stub_xl_sched_credit_domain_get(value domid)
+value stub_xl_domain_sched_params_get(value domid)
{
CAMLparam1(domid);
CAMLlocal1(scinfo);
- libxl_sched_credit_domain c_scinfo;
+ libxl_domain_sched_params c_scinfo;
int ret;
INIT_STRUCT();
INIT_CTX();
- ret = libxl_sched_credit_domain_get(ctx, Int_val(domid), &c_scinfo);
+ ret = libxl_domain_sched_params_get(ctx, Int_val(domid), &c_scinfo);
if (ret != 0)
- failwith_xl("sched_credit_domain_get", &lg);
+ failwith_xl("domain_sched_params_get", &lg);
FREE_CTX();
- scinfo = Val_sched_credit_domain(&gc, &lg, &c_scinfo);
+ scinfo = Val_domain_sched_params(&gc, &lg, &c_scinfo);
CAMLreturn(scinfo);
}
-value stub_xl_sched_credit_domain_set(value domid, value scinfo)
+value stub_xl_domain_sched_params_set(value domid, value scinfo)
{
CAMLparam2(domid, scinfo);
- libxl_sched_credit_domain c_scinfo;
+ libxl_domain_sched_params c_scinfo;
int ret;
INIT_STRUCT();
- sched_credit_domain_val(&gc, &lg, &c_scinfo, scinfo);
+ domain_sched_params_val(&gc, &lg, &c_scinfo, scinfo);
INIT_CTX();
- ret = libxl_sched_credit_domain_set(ctx, Int_val(domid), &c_scinfo);
+ ret = libxl_domain_sched_params_set(ctx, Int_val(domid), &c_scinfo);
if (ret != 0)
- failwith_xl("sched_credit_domain_set", &lg);
+ failwith_xl("domain_sched_params_set", &lg);
FREE_CTX();
CAMLreturn(Val_unit);