Commit a3020894 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

lib/sched: rename evl_sched_control() to evl_control_sched()



Given that evl_sched_control() was hardly usable prior to the latest
fixes to the scheduler control code in the core and no feedback ever
happened about such issues, we may assume that such call has no user
yet. Take this opportunity to fix a naming inconsistency in the API.
Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
parent 41eacdee
......@@ -20,7 +20,7 @@
#include <evl/poll.h>
#include <evl/proxy.h>
#define __EVL__ 10 /* API version */
#define __EVL__ 11 /* API version */
#define EVL_ABI_PREREQ 20
......
......@@ -19,7 +19,7 @@ int evl_set_schedattr(int efd, const struct evl_sched_attrs *attrs);
int evl_get_schedattr(int efd, struct evl_sched_attrs *attrs);
int evl_sched_control(int policy,
int evl_control_sched(int policy,
const union evl_sched_ctlparam *param,
union evl_sched_ctlinfo *info,
int cpu);
......
......@@ -33,7 +33,7 @@ int evl_get_schedattr(int efd, struct evl_sched_attrs *attrs)
return do_call(efd, EVL_THRIOC_GET_SCHEDPARAM, attrs);
}
int evl_sched_control(int policy,
int evl_control_sched(int policy,
const union evl_sched_ctlparam *param,
union evl_sched_ctlinfo *info,
int cpu)
......
......@@ -20,7 +20,7 @@ int main(int argc, char *argv[])
evl_set_schedattr(tfd, &attrs);
param.quota.op = evl_quota_add;
evl_sched_control(SCHED_QUOTA, &param, &info, 0);
evl_control_sched(SCHED_QUOTA, &param, &info, 0);
evl_get_cpustate(0, &cpu_state);
return 0;
......
......@@ -200,7 +200,7 @@ int main(int argc, char *argv[])
p->tp.windows[3].duration.tv_sec = 0;
p->tp.windows[3].duration.tv_nsec = 230000000;
p->tp.windows[3].ptid = EVL_TP_IDLE;
ret = evl_sched_control(SCHED_TP, p, NULL, 0);
ret = evl_control_sched(SCHED_TP, p, NULL, 0);
if (ret == -EOPNOTSUPP)
return EXIT_NO_SUPPORT;
__Texpr_assert(ret == 0);
......@@ -213,7 +213,7 @@ int main(int argc, char *argv[])
p->tp.op = evl_tp_get;
p->tp.nr_windows = NR_WINDOWS;
__Tcall_assert(ret, evl_sched_control(SCHED_TP, p, q, 0));
__Tcall_assert(ret, evl_control_sched(SCHED_TP, p, q, 0));
do_trace("check: %d windows", q->tp.nr_windows);
for (n = 0; n < 4; n++)
......@@ -232,7 +232,7 @@ int main(int argc, char *argv[])
/* Start the TP schedule. */
p->tp.op = evl_tp_start;
__Tcall_assert(ret, evl_sched_control(SCHED_TP, p, NULL, 0));
__Tcall_assert(ret, evl_control_sched(SCHED_TP, p, NULL, 0));
free(p);
__Tcall_assert(ret, evl_put_sem(&barrier));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment