mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Rename csched -> sched_credit/sched-credit in control plane.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
c263397874
commit
3903e920a1
7 files changed
+39
-39
No files matched your search
@@ -716,16 +716,16 @@ static PyObject *pyxc_sedf_domain_get(XcObject *self, PyObject *args)
|
||||
"weight", weight);
|
||||
}
|
||||
|
||||
static PyObject *pyxc_csched_domain_set(XcObject *self,
|
||||
PyObject *args,
|
||||
PyObject *kwds)
|
||||
static PyObject *pyxc_sched_credit_domain_set(XcObject *self,
|
||||
PyObject *args,
|
||||
PyObject *kwds)
|
||||
{
|
||||
uint32_t domid;
|
||||
uint16_t weight;
|
||||
uint16_t cap;
|
||||
static char *kwd_list[] = { "dom", "weight", "cap", NULL };
|
||||
static char kwd_type[] = "I|HH";
|
||||
struct csched_domain sdom;
|
||||
struct sched_credit_adjdom sdom;
|
||||
|
||||
weight = 0;
|
||||
cap = (uint16_t)~0U;
|
||||
@@ -736,22 +736,22 @@ static PyObject *pyxc_csched_domain_set(XcObject *self,
|
||||
sdom.weight = weight;
|
||||
sdom.cap = cap;
|
||||
|
||||
if ( xc_csched_domain_set(self->xc_handle, domid, &sdom) != 0 )
|
||||
if ( xc_sched_credit_domain_set(self->xc_handle, domid, &sdom) != 0 )
|
||||
return PyErr_SetFromErrno(xc_error);
|
||||
|
||||
Py_INCREF(zero);
|
||||
return zero;
|
||||
}
|
||||
|
||||
static PyObject *pyxc_csched_domain_get(XcObject *self, PyObject *args)
|
||||
static PyObject *pyxc_sched_credit_domain_get(XcObject *self, PyObject *args)
|
||||
{
|
||||
uint32_t domid;
|
||||
struct csched_domain sdom;
|
||||
struct sched_credit_adjdom sdom;
|
||||
|
||||
if( !PyArg_ParseTuple(args, "I", &domid) )
|
||||
return NULL;
|
||||
|
||||
if ( xc_csched_domain_get(self->xc_handle, domid, &sdom) != 0 )
|
||||
if ( xc_sched_credit_domain_get(self->xc_handle, domid, &sdom) != 0 )
|
||||
return PyErr_SetFromErrno(xc_error);
|
||||
|
||||
return Py_BuildValue("{s:H,s:H}",
|
||||
@@ -1084,8 +1084,8 @@ static PyMethodDef pyxc_methods[] = {
|
||||
" latency [long]: domain's wakeup latency hint\n"
|
||||
" extratime [int]: domain aware of extratime?\n"},
|
||||
|
||||
{ "csched_domain_set",
|
||||
(PyCFunction)pyxc_csched_domain_set,
|
||||
{ "sched_credit_domain_set",
|
||||
(PyCFunction)pyxc_sched_credit_domain_set,
|
||||
METH_KEYWORDS, "\n"
|
||||
"Set the scheduling parameters for a domain when running with the\n"
|
||||
"SMP credit scheduler.\n"
|
||||
@@ -1093,8 +1093,8 @@ static PyMethodDef pyxc_methods[] = {
|
||||
" weight [short]: domain's scheduling weight\n"
|
||||
"Returns: [int] 0 on success; -1 on error.\n" },
|
||||
|
||||
{ "csched_domain_get",
|
||||
(PyCFunction)pyxc_csched_domain_get,
|
||||
{ "sched_credit_domain_get",
|
||||
(PyCFunction)pyxc_sched_credit_domain_get,
|
||||
METH_VARARGS, "\n"
|
||||
"Get the scheduling parameters for a domain when running with the\n"
|
||||
"SMP credit scheduler.\n"
|
||||
|
||||