From patchwork Tue Mar 25 16:55:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 27064 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9DF3A20539 for ; Tue, 25 Mar 2014 16:58:09 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id f10sf1843298yha.7 for ; Tue, 25 Mar 2014 09:58:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=tuc8UerzP7EHY0SMbsJNN2Ai9+eUgimYnMZtzBQ/QFU=; b=Svk9JVaCAycoHfidrsCq4ip2XHenVN+n1MFGD/m0mSZa57e4d1/RmYHWRFVCHYiY9A GbqHn2qIwtA5XLQLw2yg5Fdbb4S//aftqOlGAioN4e9aFHK1tviczsuOqXXyHJmJ3lM7 3GukJDmVUYHVoRH9/8dFqmfdP68UGvwPVfcKjZm6jj9d5CVJo0h2IncE5ynyrsqUvGe0 BzKzpRsbYr1GUTamDfdsGwjvoLtbG7el3qpM90qAfQnP5qmSlbWl5ki9PCBcr9IL0yjy oyfnsyDIGmodubXsGEkcS0cR36d1+o3WlVJ5qziLkj/Qm70B4+9/QEH61ixPDYwLT+YJ Ox7g== X-Gm-Message-State: ALoCoQlIWO4PqzC2O/1QoQlOY7sGEl2p5hCdGy32POpQraiq5LaR6IKwLz3LscXbJNTTyIlmDQDT X-Received: by 10.58.91.196 with SMTP id cg4mr4096956veb.41.1395766689155; Tue, 25 Mar 2014 09:58:09 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.1 with SMTP id v1ls287607qge.50.gmail; Tue, 25 Mar 2014 09:58:09 -0700 (PDT) X-Received: by 10.58.1.97 with SMTP id 1mr7372556vel.23.1395766689064; Tue, 25 Mar 2014 09:58:09 -0700 (PDT) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id uc1si3817544vcb.53.2014.03.25.09.58.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:58:09 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id pa12so923595veb.28 for ; Tue, 25 Mar 2014 09:58:09 -0700 (PDT) X-Received: by 10.58.1.97 with SMTP id 1mr7372551vel.23.1395766688986; Tue, 25 Mar 2014 09:58:08 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp320382vck; Tue, 25 Mar 2014 09:58:08 -0700 (PDT) X-Received: by 10.224.60.71 with SMTP id o7mr84825254qah.38.1395766688482; Tue, 25 Mar 2014 09:58:08 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id x8si764341qar.65.2014.03.25.09.58.08 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:58:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUeX-0000Zf-3e; Tue, 25 Mar 2014 16:56:41 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUeV-0000Vx-4r for xen-devel@lists.xenproject.org; Tue, 25 Mar 2014 16:56:39 +0000 Received: from [193.109.254.147:15760] by server-11.bemta-14.messagelabs.com id F2/D0-09902-645B1335; Tue, 25 Mar 2014 16:56:38 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-15.tower-27.messagelabs.com!1395766597!4076132!1 X-Originating-IP: [74.125.83.41] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 31408 invoked from network); 25 Mar 2014 16:56:37 -0000 Received: from mail-ee0-f41.google.com (HELO mail-ee0-f41.google.com) (74.125.83.41) by server-15.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 25 Mar 2014 16:56:37 -0000 Received: by mail-ee0-f41.google.com with SMTP id t10so689702eei.14 for ; Tue, 25 Mar 2014 09:56:37 -0700 (PDT) X-Received: by 10.15.60.199 with SMTP id g47mr70890077eex.37.1395766597167; Tue, 25 Mar 2014 09:56:37 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id h47sm33377501eey.13.2014.03.25.09.56.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Mar 2014 09:56:36 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 25 Mar 2014 16:55:30 +0000 Message-Id: <1395766541-23979-24-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> References: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> Cc: George Dunlap , stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH 23/34] xen/sched: credit2: Some functions are only used internally X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: 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) ) {