From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: [PATCH 23/34] xen/sched: credit2: Some functions are only used internally Date: Tue, 25 Mar 2014 17:03:50 +0000 Message-ID: <5331B6F6.2070702@eu.citrix.com> References: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> <1395766541-23979-24-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUlY-0004qx-Lu for xen-devel@lists.xenproject.org; Tue, 25 Mar 2014 17:03:56 +0000 In-Reply-To: <1395766541-23979-24-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall , xen-devel@lists.xenproject.org Cc: stefano.stabellini@citrix.com, tim@xen.org, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org On 03/25/2014 04:55 PM, Julien Grall wrote: > The list of function above are only used internally in common/domctl.c > - migrate > - update_max_weight > > Signed-off-by: Julien Grall > Cc: George Dunlap Acked-by: George Dunlap > --- > xen/common/sched_credit2.c | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) > > diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c > index 6729564..97f4049 100644 > --- a/xen/common/sched_credit2.c > +++ b/xen/common/sched_credit2.c > @@ -696,7 +696,8 @@ void burn_credits(struct csched_runqueue_data *rqd, struct csched_vcpu *svc, s_t > } > > /* Find the domain with the highest weight. */ > -void update_max_weight(struct csched_runqueue_data *rqd, int new_weight, int old_weight) > +static void update_max_weight(struct csched_runqueue_data *rqd, int new_weight, > + int old_weight) > { > /* Try to avoid brute-force search: > * - If new_weight is larger, max_weigth <- new_weight > @@ -1182,10 +1183,10 @@ static void consider(balance_state_t *st, > } > > > -void migrate(const struct scheduler *ops, > - struct csched_vcpu *svc, > - struct csched_runqueue_data *trqd, > - s_time_t now) > +static void migrate(const struct scheduler *ops, > + struct csched_vcpu *svc, > + struct csched_runqueue_data *trqd, > + s_time_t now) > { > if ( test_bit(__CSFLAG_scheduled, &svc->flags) ) > { >