Message ID | 146847850570.25458.11601847684264900881.stgit@Solace.fritz.box (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <xen-devel-bounces@lists.xen.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 66C136075D for <patchwork-xen-devel@patchwork.kernel.org>; Thu, 14 Jul 2016 06:44:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 575322808C for <patchwork-xen-devel@patchwork.kernel.org>; Thu, 14 Jul 2016 06:44:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4BAD628159; Thu, 14 Jul 2016 06:44:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id EFD8E2808C for <patchwork-xen-devel@patchwork.kernel.org>; Thu, 14 Jul 2016 06:44:12 +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 1bNaLH-00077X-GO; Thu, 14 Jul 2016 06:41:51 +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 1bNaLG-00077G-5W for xen-devel@lists.xenproject.org; Thu, 14 Jul 2016 06:41:50 +0000 Received: from [193.109.254.147] by server-11.bemta-14.messagelabs.com id A0/79-01707-D2437875; Thu, 14 Jul 2016 06:41:49 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrGIsWRWlGSWpSXmKPExsXiVRvkqKtj0h5 ucPiMkcX3LZOZHBg9Dn+4whLAGMWamZeUX5HAmnHw21TmgmbWijVrNrA0MHawdDFycggJzGCU 2HjauYuRi4NFYA2rxNQJG9hAEhICl1gl3h7WgbBjJFpW7GSCsMslzndfY4RoVpG4uX0VE0izk MASJokJ6z+BNQsL6EkcOfqDHcIOkDjYdgCsmU3AQOLNjr2sILaIgJLEvVWTweLMAsoSHz7MBq tnEVCV+LXoBNgcXgEfiWkfdgEt4+DgBLJfroyH2Ost0Tl5I9gYUQE5iZWXW1ghygUlTs58wgJ SziygKbF+lz7EdHmJ7W/nME9gFJmFpGoWQtUsJFULGJlXMWoUpxaVpRbpGhrpJRVlpmeU5CZm 5ugaGpro5aYWFyemp+YkJhXrJefnbmIEhj4DEOxgPDvN+RCjJAeTkiivdn9buBBfUn5KZUZic UZ8UWlOavEhRhkODiUJ3r1G7eFCgkWp6akVaZk5wCiESUtw8CiJ8BoYA6V5iwsSc4sz0yFSpx iNORb8uL2WiWPL1HtrmYRY8vLzUqXEeY+DTBIAKc0ozYMbBEsOlxhlpYR5GYFOE+IpSC3KzSx BlX/FKM7BqCTMywuykCczrwRu3yugU5iATql1aAY5pSQRISXVwNhXkLurbPfsw6vM70Tdjfly 9onaSreQj6vWPY75+9ux4Z95iOkDw/d/Z78J3LxByUK5aFMSj+i9qx7bnXMbv1WdeCaqcYO7X HNS5hfJBUceTpjssPLrWVcZvonssZc3n/D6dVml1+2hUfWszKCppzc0FThfTTOuDp5pVft9ju N5gwYOUTtuUXYlluKMREMt5qLiRAClt0GiCQMAAA== X-Env-Sender: raistlin.df@gmail.com X-Msg-Ref: server-8.tower-27.messagelabs.com!1468478508!43324244!1 X-Originating-IP: [74.125.82.65] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.77; banners=-,-,- X-VirusChecked: Checked Received: (qmail 18574 invoked from network); 14 Jul 2016 06:41:48 -0000 Received: from mail-wm0-f65.google.com (HELO mail-wm0-f65.google.com) (74.125.82.65) by server-8.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 14 Jul 2016 06:41:48 -0000 Received: by mail-wm0-f65.google.com with SMTP id q128so3923664wma.1 for <xen-devel@lists.xenproject.org>; Wed, 13 Jul 2016 23:41:48 -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=JtT8hYNH/KLnY0hKV3v1rCAnH99EZtdgtpVEvS+p3jY=; b=fqG/N/avwcketBxq3PbZQNXobGsdpDVeC1CUBFjS6BnmjtENoWbT5jPbYXl/NEi0jP vxJ7PhOKEycCbKpWhASBP0wb0kysMsJtmsGwSaDHjgiYpoR7B1G2Dx+RXJOGucyVSTfW vV7gK+tsJkJwt8mOfvRjj/NbMu0zf4csMN0YxDjVch+gL/ldnOylsiOztb0WDVATF6sL 9M1Sx7IW8+6blnpT45wFIeDpRsKuq+NoRfd2H7SVWyir2lrtxwD0uYeYAwJzH3dmoenn OwTfPKoyPpY16+vvAuxWlqcDFoReerw0xNnb6v1CZm9hte7mD5ozX9a90V7TwJq1b2m+ LaGA== 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=JtT8hYNH/KLnY0hKV3v1rCAnH99EZtdgtpVEvS+p3jY=; b=Meqlgya3nJGvjsqjeXJSxCfG31mEXkc2agZGhiawoLWLA3q74lr5TO3lRi0rNR3kj0 rKi+R9kp0P7o16b0xpZoF0Tzvne+az4XxR+aVEbeJjmBmVtM9Nhf2tp8NbFGVd5zONh4 2mQVWPEiiGNb4ykSzx7VgY7T0sTUDx+upKvwKJM5KjO7owWUEEsgonypi9wB64HSVUaR 1OmqrPN9fOHqU3eIQEiFr/2UsR1iw51e44A3+SB/98PZx8w3S8REjhEMs3y0D2+h/RV3 AnaVH84iRH8v9KCx+Esy+doTO9KrmLrsXAX3JncfjjFRh4hp7kJ6CFBJFX1JwrbxwfIj YdQw== X-Gm-Message-State: ALyK8tLg8ILnVM9DBTp7B+g57h5OBA325pIFk55w4H8bFRhY8eIwOsFHkAnfzFazWsAr3Q== X-Received: by 10.28.223.9 with SMTP id w9mr13458893wmg.65.1468478508305; Wed, 13 Jul 2016 23:41:48 -0700 (PDT) Received: from Solace.fritz.box (net-188-217-84-158.cust.vodafonedsl.it. [188.217.84.158]) by smtp.gmail.com with ESMTPSA id p126sm1173587wmp.13.2016.07.13.23.41.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jul 2016 23:41:47 -0700 (PDT) From: Dario Faggioli <dario.faggioli@citrix.com> To: xen-devel@lists.xenproject.org Date: Thu, 14 Jul 2016 08:41:45 +0200 Message-ID: <146847850570.25458.11601847684264900881.stgit@Solace.fritz.box> In-Reply-To: <146847830772.25458.3001435525572823491.stgit@Solace.fritz.box> References: <146847830772.25458.3001435525572823491.stgit@Solace.fritz.box> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Cc: Juergen Gross <jgross@suse.com> Subject: [Xen-devel] [PATCH 2/2] xen: cpupool: small optimization when moving between pools 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: <https://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: <https://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-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/xen/common/cpupool.c b/xen/common/cpupool.c index 5dacc61..9998394 100644 --- a/xen/common/cpupool.c +++ b/xen/common/cpupool.c @@ -232,6 +232,9 @@ static int cpupool_move_domain_locked(struct domain *d, struct cpupool *c) { int ret; + if ( unlikely(d->cpupool == c) ) + return 0; + d->cpupool->n_dom--; ret = sched_move_domain(d, c); if ( ret )
If the domain is already where we want it to go, there's not much to do indeed. Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com> --- Cc: Juergen Gross <jgross@suse.com> --- xen/common/cpupool.c | 3 +++ 1 file changed, 3 insertions(+)