Message ID | 20160406172327.25877.43810.stgit@Solace.fritz.box (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <xen-devel-bounces@lists.xen.org> X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 06BC19F39A for <patchwork-xen-devel@patchwork.kernel.org>; Wed, 6 Apr 2016 17:26:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 28788201E4 for <patchwork-xen-devel@patchwork.kernel.org>; Wed, 6 Apr 2016 17:26:13 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 18BBC201D3 for <patchwork-xen-devel@patchwork.kernel.org>; Wed, 6 Apr 2016 17:26:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <xen-devel-bounces@lists.xen.org>) id 1anrBi-0001Zo-Uf; Wed, 06 Apr 2016 17:24:18 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <raistlin.df@gmail.com>) id 1anrBh-0001Yd-63 for xen-devel@lists.xenproject.org; Wed, 06 Apr 2016 17:24:17 +0000 Received: from [193.109.254.147] by server-2.bemta-14.messagelabs.com id 91/EA-03301-04645075; Wed, 06 Apr 2016 17:24:16 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrDIsWRWlGSWpSXmKPExsXiVRvkrGvvxhp u0NRubvF9y2QmB0aPwx+usAQwRrFm5iXlVySwZrz628NYcI+rou+PVwPja44uRi4OIYHpjBLt 2/+xgzgsAmtYJbY/+gXmSAhcYpU49PA9SxcjJ5ATI3Ht7BPWLkYOILtSoqNNFiQsJKAicXP7K iaISYuZJFZO280OkhAW0JM4cvQHlB0isWnVJDCbTcBA4s2OvawgtoiAksS9VZOZQGxmgWCJX0 0tYLtYBFQl1t9vYAaxeQXsJaY2HWAD2csp4CCxZ7I7xF57iatfToCViArISay83MIKUS4ocXL mExaQcmYBTYn1u/QhpstLbH87h3kCo8gsJFWzEKpmIalawMi8ilGjOLWoLLVI19BUL6koMz2j JDcxM0fX0NBELze1uDgxPTUnMalYLzk/dxMjMPTrGRgYdzD+Pe15iFGSg0lJlNdTgjVciC8pP 6UyI7E4I76oNCe1+BCjBgeHwISzc6czSbHk5eelKknwnnMBqhMsSk1PrUjLzAFGJ0ypBAePkg gvuytQmre4IDG3ODMdInWKUZdjy9R7a5mEwGZIifO+BJkhAFKUUZoHNwKWKC4xykoJ8zIyMDA I8RSkFuVmlqDKv2IU52BUEub9ATKFJzOvBG7TK6AjmICOqBdmAjmiJBEhJdXAaHHPQe5GddrK 3zxe3fXaZ6eLvz/QlmrPvTbs38JDDx9XfDy5pv1Ex84L7o5+oqf2ewv/UjMU5e+Jqi/RW18vL C9z6drtv1q7W67e4WOMuyV1NtczraM21kjra5Rt2+69d6eledyezb7k4Md7fNqLHj7eYLY/+9 qjuaf2Tv2e3+LBHzXjuKXbKSWW4oxEQy3mouJEANRB6/8PAwAA X-Env-Sender: raistlin.df@gmail.com X-Msg-Ref: server-7.tower-27.messagelabs.com!1459963455!36018075!1 X-Originating-IP: [74.125.82.67] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.28; banners=-,-,- X-VirusChecked: Checked Received: (qmail 14887 invoked from network); 6 Apr 2016 17:24:15 -0000 Received: from mail-wm0-f67.google.com (HELO mail-wm0-f67.google.com) (74.125.82.67) by server-7.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 6 Apr 2016 17:24:15 -0000 Received: by mail-wm0-f67.google.com with SMTP id n3so15157974wmn.1 for <xen-devel@lists.xenproject.org>; Wed, 06 Apr 2016 10:24:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:from:to:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=lgQdQoiRxNvgASPHP7m5pQXje1TNQNm0U+xDdehvH4U=; b=Z4X94ruArUQx63WWQRDiX3Mn2I1wUN7s6YTep2kJpV4j/SM4mlB2D3qmeoDHeoDMcj ez6L6xuP1GImsuqr/n3LslUjxHmkaIxzajoaBUV7FhRD9Vp1aS2s60jdlbMsFiE3tQiu FniNTguylOqem/q17FVlcTvtiurO3BzllPkGRh8ARi3OdJoUm1T2CRLGO1Co8OeFjSQX 7Jn3v52rSGpmoEVMjzHpuwnm9T5iLZUq3q9/K1ZLqkAkQiaGbDREjV/y46BkWZAMe6Y5 ecx1ix/ieZKaUhNDwgL5GnqVs4QvosN+C47fLex56KN60TdOnXgu3awlWieV1pTHreYQ M+5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:from:to:cc:date:message-id :in-reply-to:references:user-agent:mime-version :content-transfer-encoding; bh=lgQdQoiRxNvgASPHP7m5pQXje1TNQNm0U+xDdehvH4U=; b=fPRRBPDjilN+5xGbtIKQlm/rYKyhCBdr8muwfvFhmFczZnbXMTVJnWXKAw3ml/Qjlv K2e2PXgu/QHoZn4LIXCUJbP+hHvxngzjobO5pzCEvBe5KCzpPO8+SpyiUZmyxR125jtk eYzP4vGLS53o501DzrIqzezz4P1jNoxacDjzHy25ibCfLtEfvxClP58un9g04DVOp9am dtKLYLduLc6dq1DJxhvikCGd8ENMjlsMk7hfvJ5gK/OIsOubdrqodz/X4hdEw4SLy44S m9UIFXdDpm0cPnXeLLRtkjNQB4gq5mG8MDa64WoxtilxyQaSX0cwzuQdsCMs3Lk2j216 XYrg== X-Gm-Message-State: AD7BkJJ61ONm67SFrnucOScHNx9bU+Q+U/lPo+yerGywoWGHpPJq6x9eXKLtCFciItKGOg== X-Received: by 10.28.234.137 with SMTP id g9mr18126245wmi.78.1459963410075; Wed, 06 Apr 2016 10:23:30 -0700 (PDT) Received: from Solace.fritz.box (net-37-116-155-252.cust.vodafonedsl.it. [37.116.155.252]) by smtp.gmail.com with ESMTPSA id ys9sm4256148wjc.35.2016.04.06.10.23.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Apr 2016 10:23:29 -0700 (PDT) From: Dario Faggioli <dario.faggioli@citrix.com> To: xen-devel@lists.xenproject.org Date: Wed, 06 Apr 2016 19:23:27 +0200 Message-ID: <20160406172327.25877.43810.stgit@Solace.fritz.box> In-Reply-To: <20160406170023.25877.15622.stgit@Solace.fritz.box> References: <20160406170023.25877.15622.stgit@Solace.fritz.box> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Cc: Tianyang Chen <tiche@seas.upenn.edu>, George Dunlap <george.dunlap@citrix.com> Subject: [Xen-devel] [PATCH v2 06/11] xen: sched: on Credit2, don't reprogram the timer if idle X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xen.org> List-Unsubscribe: <http://lists.xen.org/cgi-bin/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xen.org> List-Help: <mailto:xen-devel-request@lists.xen.org?subject=help> List-Subscribe: <http://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" <xen-devel-bounces@lists.xen.org> X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c index 7286e50..b207d84 100644 --- a/xen/common/sched_credit2.c +++ b/xen/common/sched_credit2.c @@ -1543,8 +1543,12 @@ csched2_runtime(const struct scheduler *ops, int cpu, struct csched2_vcpu *snext struct csched2_runqueue_data *rqd = RQD(ops, cpu); struct list_head *runq = &rqd->runq; + /* + * If we're idle, just stay so. Others (or external events) + * will poke us when necessary. + */ if ( is_idle_vcpu(snext->vcpu) ) - return CSCHED2_MAX_TIMER; + return -1; /* General algorithm: * 1) Run until snext's credit will be 0