From nobody Thu May 2 16:53:01 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1559272807; cv=none; d=zoho.com; s=zohoarc; b=ZG9ToRaNZSk5T9YT9JOu1MKOc1S6jpAdKSEWFv3lMKGuCSmAurLgSV3v3V5qb9w/SNR3ah5Q1mhexTSdk45H7ATufceshdfOLyP6N+7RSxrufT/N+gqiFG0Q6WEzawaoZuLLdGDNaOk5XXws8M8QGRuovbpUjzez0Dsepvqj5BM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559272807; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=CgIENjUGJokmZCLEsK6Ck9tnp/UXSw/d68iiqyriXRk=; b=nMBJZ0eX74JMHSmL6NtXzq77W2dVBwPym+U63EgQp3i9FEzCtscWHpAs7K6VZIk8qMDE/F6Zqccn2I0q6rjyjApMyls1MJ28hKz0LNp42kyMFaIT5/qO/xHtLK5RRc771bTlTr4LM4Il/P6BQ+raA+YZXQKekxsrWcSvf4jeUQg= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1559272807881323.9796857553789; Thu, 30 May 2019 20:20:07 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hWY3t-0005aM-7r; Fri, 31 May 2019 03:18:33 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hWY3s-0005aH-Bf for xen-devel@lists.xenproject.org; Fri, 31 May 2019 03:18:32 +0000 Received: from mxnavi-mail.mxnavi.com (unknown [116.90.87.199]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id c2fa98d9-8352-11e9-8980-bc764e045a96; Fri, 31 May 2019 03:18:30 +0000 (UTC) Received: from localhost.localdomain (61.161.186.150) by mxnavi-mail.mxnavi.com (116.90.87.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1591.10; Fri, 31 May 2019 11:16:17 +0800 X-Inumbo-ID: c2fa98d9-8352-11e9-8980-bc764e045a96 From: Baodong Chen To: Date: Fri, 31 May 2019 11:18:22 +0800 Message-ID: <1559272702-13459-1-git-send-email-chenbaodong@mxnavi.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [61.161.186.150] X-ClientProxiedBy: mxnavi-mail.mxnavi.com (116.90.87.199) To mxnavi-mail.mxnavi.com (116.90.87.199) Subject: [Xen-devel] [PATCH] xen: put cpupool's member 'n_dom' after 'cpupool_id' X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Jan Beulich , Baodong Chen Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Thus, sizeof(struct cpupool) will save 8 bytes for 64-bit system. Signed-off-by: Baodong Chen Acked-by: Jan Beulich --- xen/include/xen/sched-if.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/xen/sched-if.h b/xen/include/xen/sched-if.h index 92bc7a0..f0cf210 100644 --- a/xen/include/xen/sched-if.h +++ b/xen/include/xen/sched-if.h @@ -213,9 +213,9 @@ static inline void sched_free_domdata(const struct sche= duler *s, struct cpupool { int cpupool_id; + unsigned int n_dom; cpumask_var_t cpu_valid; /* all cpus assigned to pool */ struct cpupool *next; - unsigned int n_dom; struct scheduler *sched; atomic_t refcnt; }; --=20 2.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel