From patchwork Fri Jun 23 10:55:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Faggioli X-Patchwork-Id: 9806261 Return-Path: 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 040C360329 for ; Fri, 23 Jun 2017 10:58:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5F0B28607 for ; Fri, 23 Jun 2017 10:57:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9AD6228662; Fri, 23 Jun 2017 10:57:36 +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 422A528607 for ; Fri, 23 Jun 2017 10:57:35 +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 ) id 1dOMFH-0006Pv-La; Fri, 23 Jun 2017 10:55:23 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dOMFG-0006PK-VB for xen-devel@lists.xenproject.org; Fri, 23 Jun 2017 10:55:23 +0000 Received: from [193.109.254.147] by server-2.bemta-6.messagelabs.com id C0/66-03058-A93FC495; Fri, 23 Jun 2017 10:55:22 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOIsWRWlGSWpSXmKPExsVyMbThsO7Mzz6 RBlPP61l83zKZyYHR4/CHKywBjFGsmXlJ+RUJrBkvLnWxFWzkq7i/YQtzA2M7dxcjF4eQwExG iXl/pzOCOCwCa1glPr26zgriSAhcYpU4/ekRkMMJ5MRJ7NjznQ3CrpRon7yOHcQWElCRuLl9F ROE/Y1R4uqNMBBbWEBP4sjRH0A1HEC2u8TUy+EgYTYBA4k3O/aCjRQRUJK4t2oyWCuzgL/E4f O7wcazCKhK7Lk7F8zmFXCQuLP0G9gqTgEniQmrdkKtcpRo+f+CGcQWFZCTWHm5hRWiXlDi5Mw nLCBrmQU0Jdbv0ocYLy+x/e0c5gmMIrOQVM1CqJqFpGoBI/MqRo3i1KKy1CJdY2O9pKLM9IyS 3MTMHF1DAzO93NTi4sT01JzEpGK95PzcTYzA4GcAgh2MO9cHHmKU5GBSEuWNPeMTKcSXlJ9Sm ZFYnBFfVJqTWnyIUYaDQ0mCN+gTUE6wKDU9tSItMwcYhzBpCQ4eJRHe7R+A0rzFBYm5xZnpEK lTjMYcV66s+8LEMeXA9i9MQix5+XmpUuK8CSCTBEBKM0rz4AbB0sMlRlkpYV5GoNOEeApSi3I zS1DlXzGKczAqCfP+/gg0hSczrwRu3yugU5iATpmxBuyUkkSElFQDY+HruX+K/RX7N1r+d5Z5 5F8Z/WRmp43Q0oyLpUJnH/+WfBNSG2/0QrQzIbjmfbD6+aQX8xrY1zBV1m011ll4PGxF9YpC9 vMX366Js90uujx9aurlg/2hl+X3XEja8lDOpXRfqQL/xy2tAkmzn3z4cetJxXynkqjg+Ts2ff b6yfFY5uyLgCv2wkosxRmJhlrMRcWJAIJ3IlYKAwAA X-Env-Sender: raistlin.df@gmail.com X-Msg-Ref: server-14.tower-27.messagelabs.com!1498215321!96704403!1 X-Originating-IP: [209.85.128.195] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 47037 invoked from network); 23 Jun 2017 10:55:21 -0000 Received: from mail-wr0-f195.google.com (HELO mail-wr0-f195.google.com) (209.85.128.195) by server-14.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 23 Jun 2017 10:55:21 -0000 Received: by mail-wr0-f195.google.com with SMTP id z45so11661026wrb.2 for ; Fri, 23 Jun 2017 03:55:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:from:to:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=yD2Fig05QxOG2CNzid0D3j9ILGAWBydFjEbuzwVhJu4=; b=Zsfu9rSBD/QAdBmR+OX83aUt0SLUDj2V8wNT2BYMrNkxTIvF7erVWTVtqlLpf2F9M2 bO3/IV29nJfq1icGC8zZAiESSSpePMIaFIOoTSaTY9ak2mv41XqhoApzARKCrwdQuS8X CW1hagaNpgG1stCESgPp1yceleQrpE8CcUyMrOEXeI79iIkPyYNY3W35+qd/Q68t2KDt aEjZ1amNt5ZaaZzCh5+ULBZgI0fKfG+mflEPfPAp84kAOF8QFtl/gauqHynrtVLWBlul scgs+iPNNNCnKL47MoSVlHfvKBmz7UxGNPcHN4oNaxFNulsIbvPpg5rcKgI74Iz3Yr6f k5NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=yD2Fig05QxOG2CNzid0D3j9ILGAWBydFjEbuzwVhJu4=; b=cuJ2f4Olat0BKXGkmL4IxqHgsNsTs8bEansAa7k4u3+oqtR4EzRkSdvCu2EE28xSyn zK7bFH2N5qkhsiAemCHK4889KsLP8gWU0fO8FbN2MCtavsLJv1PSdHlZeHW/VcbzNV9x fmBw1/mYkQ+HLigFxFeGQsOKTbF4PUjRk6rxNebC3TvxHMNxZB55vb1a/KwmvsrpKOEQ DqyVNEl+HZ0BYUdk7b2G0f9pvWKzyqTUmRFLerlEy5y7/LTr4HLFb74GJbnnwBmh/t0R 1xWManGJZm8zsiKfsINffHDfXMYTO+phw5Q0+4mPg4BAnntnQVZxPLe5YJuxUM7UuSLl 8b+A== X-Gm-Message-State: AKS2vOxGoN7K1gW59LynTAPP0Yjk1EyrxatL/zJXmluKn6ERKihmNQgg iITagJ4umZ99AA== X-Received: by 10.28.23.138 with SMTP id 132mr4882497wmx.114.1498215321399; Fri, 23 Jun 2017 03:55:21 -0700 (PDT) Received: from [192.168.0.31] ([80.66.223.81]) by smtp.gmail.com with ESMTPSA id 49sm3592081wrv.23.2017.06.23.03.55.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jun 2017 03:55:20 -0700 (PDT) From: Dario Faggioli To: xen-devel@lists.xenproject.org Date: Fri, 23 Jun 2017 12:55:19 +0200 Message-ID: <149821531970.5914.6372373520013365573.stgit@Solace> In-Reply-To: <149821475587.5914.12193327340105859241.stgit@Solace> References: <149821475587.5914.12193327340105859241.stgit@Solace> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Cc: George Dunlap , Meng Xu Subject: [Xen-devel] [PATCH 5/6] xen: RTDS: rearrange members of control structures X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Nothing changed in `pahole` output, in terms of holes and padding, but some fields have been moved, to put related members in same cache line. Signed-off-by: Dario Faggioli Acked-by: George Dunlap Reviewed-by: Meng Xu --- Cc: Meng Xu Cc: George Dunlap --- xen/common/sched_rt.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/xen/common/sched_rt.c b/xen/common/sched_rt.c index 1b30014..39f6bee 100644 --- a/xen/common/sched_rt.c +++ b/xen/common/sched_rt.c @@ -171,11 +171,14 @@ static void repl_timer_handler(void *data); struct rt_private { spinlock_t lock; /* the global coarse-grained lock */ struct list_head sdom; /* list of availalbe domains, used for dump */ + struct list_head runq; /* ordered list of runnable vcpus */ struct list_head depletedq; /* unordered list of depleted vcpus */ + + struct timer *repl_timer; /* replenishment timer */ struct list_head replq; /* ordered list of vcpus that need replenishment */ + cpumask_t tickled; /* cpus been tickled */ - struct timer *repl_timer; /* replenishment timer */ }; /* @@ -185,10 +188,6 @@ struct rt_vcpu { struct list_head q_elem; /* on the runq/depletedq list */ struct list_head replq_elem; /* on the replenishment events list */ - /* Up-pointers */ - struct rt_dom *sdom; - struct vcpu *vcpu; - /* VCPU parameters, in nanoseconds */ s_time_t period; s_time_t budget; @@ -198,6 +197,10 @@ struct rt_vcpu { s_time_t last_start; /* last start time */ s_time_t cur_deadline; /* current deadline for EDF */ + /* Up-pointers */ + struct rt_dom *sdom; + struct vcpu *vcpu; + unsigned flags; /* mark __RTDS_scheduled, etc.. */ };