From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: [PATCH v4 3/7] libxc: get rid of the SEDF scheduler Date: Tue, 07 Jul 2015 18:43:47 +0200 Message-ID: <20150707164347.19145.15064.stgit@Solace.station> References: <20150707163946.19145.54568.stgit@Solace.station> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZCVyK-0003lH-4H for xen-devel@lists.xenproject.org; Tue, 07 Jul 2015 16:43:52 +0000 Received: by wifm2 with SMTP id m2so65267132wif.1 for ; Tue, 07 Jul 2015 09:43:50 -0700 (PDT) In-Reply-To: <20150707163946.19145.54568.stgit@Solace.station> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: George Dunlap , Wei Liu , Ian Jackson , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Signed-off-by: Dario Faggioli Reviewed-by: George Dunlap Acked-by: Ian Campbell --- Cc: Ian Jackson Cc: Stefano Stabellini Cc: Wei Liu --- tools/libxc/Makefile | 1 - tools/libxc/include/xenctrl.h | 12 ------ tools/libxc/xc_sedf.c | 78 ----------------------------------------- 3 files changed, 91 deletions(-) delete mode 100644 tools/libxc/xc_sedf.c diff --git a/tools/libxc/Makefile b/tools/libxc/Makefile index 153b79e..b659df4 100644 --- a/tools/libxc/Makefile +++ b/tools/libxc/Makefile @@ -21,7 +21,6 @@ CTRL_SRCS-y += xc_misc.c CTRL_SRCS-y += xc_flask.c CTRL_SRCS-y += xc_physdev.c CTRL_SRCS-y += xc_private.c -CTRL_SRCS-y += xc_sedf.c CTRL_SRCS-y += xc_csched.c CTRL_SRCS-y += xc_csched2.c CTRL_SRCS-y += xc_arinc653.c diff --git a/tools/libxc/include/xenctrl.h b/tools/libxc/include/xenctrl.h index d1d2ab3..31c7cb9 100644 --- a/tools/libxc/include/xenctrl.h +++ b/tools/libxc/include/xenctrl.h @@ -875,18 +875,6 @@ int xc_shadow_control(xc_interface *xch, uint32_t mode, xc_shadow_op_stats_t *stats); -int xc_sedf_domain_set(xc_interface *xch, - uint32_t domid, - uint64_t period, uint64_t slice, - uint64_t latency, uint16_t extratime, - uint16_t weight); - -int xc_sedf_domain_get(xc_interface *xch, - uint32_t domid, - uint64_t* period, uint64_t *slice, - uint64_t *latency, uint16_t *extratime, - uint16_t *weight); - int xc_sched_credit_domain_set(xc_interface *xch, uint32_t domid, struct xen_domctl_sched_credit *sdom); diff --git a/tools/libxc/xc_sedf.c b/tools/libxc/xc_sedf.c deleted file mode 100644 index db372ca..0000000 --- a/tools/libxc/xc_sedf.c +++ /dev/null @@ -1,78 +0,0 @@ -/****************************************************************************** - * xc_sedf.c - * - * API for manipulating parameters of the Simple EDF scheduler. - * - * changes by Stephan Diestelhorst - * based on code - * by Mark Williamson, Copyright (c) 2004 Intel Research Cambridge. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; - * version 2.1 of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include "xc_private.h" - -int xc_sedf_domain_set( - xc_interface *xch, - uint32_t domid, - uint64_t period, - uint64_t slice, - uint64_t latency, - uint16_t extratime, - uint16_t weight) -{ - DECLARE_DOMCTL; - struct xen_domctl_sched_sedf *p = &domctl.u.scheduler_op.u.sedf; - - domctl.cmd = XEN_DOMCTL_scheduler_op; - domctl.domain = (domid_t)domid; - domctl.u.scheduler_op.sched_id = XEN_SCHEDULER_SEDF; - domctl.u.scheduler_op.cmd = XEN_DOMCTL_SCHEDOP_putinfo; - - p->period = period; - p->slice = slice; - p->latency = latency; - p->extratime = extratime; - p->weight = weight; - return do_domctl(xch, &domctl); -} - -int xc_sedf_domain_get( - xc_interface *xch, - uint32_t domid, - uint64_t *period, - uint64_t *slice, - uint64_t *latency, - uint16_t *extratime, - uint16_t *weight) -{ - DECLARE_DOMCTL; - int ret; - struct xen_domctl_sched_sedf *p = &domctl.u.scheduler_op.u.sedf; - - domctl.cmd = XEN_DOMCTL_scheduler_op; - domctl.domain = (domid_t)domid; - domctl.u.scheduler_op.sched_id = XEN_SCHEDULER_SEDF; - domctl.u.scheduler_op.cmd = XEN_DOMCTL_SCHEDOP_getinfo; - - ret = do_domctl(xch, &domctl); - - *period = p->period; - *slice = p->slice; - *latency = p->latency; - *extratime = p->extratime; - *weight = p->weight; - return ret; -}