xend: Remove redundant xc.domain_setcpuweight() all the way down to libxenctrl.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2008-02-11 10:15:07 +00:00
1 parent 250e4ae1c7
commit ce49af7f2c
4 files changed
-49

No files matched your search

-28
View File
@@ -237,26 +237,6 @@ static PyObject *pyxc_vcpu_setaffinity(XcObject *self,
return zero;
}
static PyObject *pyxc_domain_setcpuweight(XcObject *self,
PyObject *args,
PyObject *kwds)
{
uint32_t dom;
float cpuweight = 1;
static char *kwd_list[] = { "domid", "cpuweight", NULL };
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "i|f", kwd_list,
&dom, &cpuweight) )
return NULL;
if ( xc_domain_setcpuweight(self->xc_handle, dom, cpuweight) != 0 )
return pyxc_error_to_exception();
Py_INCREF(zero);
return zero;
}
static PyObject *pyxc_domain_sethandle(XcObject *self, PyObject *args)
{
int i;
@@ -1325,14 +1305,6 @@ static PyMethodDef pyxc_methods[] = {
" cpumap [list, []]: list of usable CPUs.\n\n"
"Returns: [int] 0 on success; -1 on error.\n" },
{ "domain_setcpuweight",
(PyCFunction)pyxc_domain_setcpuweight,
METH_VARARGS | METH_KEYWORDS, "\n"
"Set cpuweight scheduler parameter for domain.\n"
" dom [int]: Identifier of domain to be changed.\n"
" cpuweight [float, 1]: VCPU being pinned.\n"
"Returns: [int] 0 on success; -1 on error.\n" },
{ "domain_sethandle",
(PyCFunction)pyxc_domain_sethandle,
METH_VARARGS, "\n"
-3
View File
@@ -1750,9 +1750,6 @@ class XendDomainInfo:
self.image = image.create(self, self.info)
xc.domain_setcpuweight(self.domid, \
self.info['vcpus_params']['weight'])
# repin domain vcpus if a restricted cpus list is provided
# this is done prior to memory allocation to aide in memory
# distribution for NUMA systems.
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.