From nobody Thu Mar 28 15:01:21 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=1559527108; cv=none; d=zoho.com; s=zohoarc; b=fZ/lYtpS1BZ2J3HV2nZdJQ3RAOV+NYtpU893bMfin4I36p/7lywsQBuGOCACCpGJfARFEJBo1p0BW2aVSUAmEsrQE/GFdLfIzPDrx5EUq+ppPZZEvydXdP3+cb8WKktTAjn4AT2q1Lrim61Q5Wv9fdYGZb7aN3VJkjn+lbIPXKo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559527108; 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=n4olaMc/tc3JbXFYvuxh8bFIqJ/tXeFdbcv0PiC8NxM=; b=a54Q8Ug8ZyDJ3lZ2+qUadT++3O0ffxwUwHoL9+V1xz5GxlB1iRE2HWm/xhE+70UWsLUASBjSywvXe3J4H0K4Fi8PRGugaKsGdaKFEJtttwHu/jNAelIXufdKLwRrmf3w/6h2tDxrnnEDOHBC6aO+FD35vUSxuwbxet+K5KsVg/Q= 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 1559527108779662.3523007598307; Sun, 2 Jun 2019 18:58:28 -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 1hXcDx-0002Q7-Ur; Mon, 03 Jun 2019 01:57:21 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hXcDx-0002Q1-3i for xen-devel@lists.xenproject.org; Mon, 03 Jun 2019 01:57:21 +0000 Received: from mxnavi-mail.mxnavi.com (unknown [116.90.87.199]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id e8205d4a-85a2-11e9-8f22-5ffccb4f699b; Mon, 03 Jun 2019 01:57:15 +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; Mon, 3 Jun 2019 09:55:01 +0800 X-Inumbo-ID: e8205d4a-85a2-11e9-8f22-5ffccb4f699b From: Baodong Chen To: Date: Mon, 3 Jun 2019 09:57:04 +0800 Message-ID: <1559527024-7507-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 RESEND] xen: cpu: change 'cpu_hotplug_[begin|done]' to inline function 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" Signed-off-by: Baodong Chen Acked-by: Jan Beulich --- xen/common/cpu.c | 10 ---------- xen/include/xen/cpu.h | 10 ++++++++-- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/xen/common/cpu.c b/xen/common/cpu.c index f388d89..a526b55 100644 --- a/xen/common/cpu.c +++ b/xen/common/cpu.c @@ -51,16 +51,6 @@ void put_cpu_maps(void) spin_unlock_recursive(&cpu_add_remove_lock); } =20 -bool_t cpu_hotplug_begin(void) -{ - return get_cpu_maps(); -} - -void cpu_hotplug_done(void) -{ - put_cpu_maps(); -} - static NOTIFIER_HEAD(cpu_chain); =20 void __init register_cpu_notifier(struct notifier_block *nb) diff --git a/xen/include/xen/cpu.h b/xen/include/xen/cpu.h index 4638c50..568d483 100644 --- a/xen/include/xen/cpu.h +++ b/xen/include/xen/cpu.h @@ -10,8 +10,14 @@ bool_t get_cpu_maps(void); void put_cpu_maps(void); =20 /* Safely perform CPU hotplug and update cpu_online_map, etc. */ -bool_t cpu_hotplug_begin(void); -void cpu_hotplug_done(void); +static inline bool cpu_hotplug_begin(void) +{ + return get_cpu_maps(); +} +static inline void cpu_hotplug_done(void) +{ + put_cpu_maps(); +} =20 /* Receive notification of CPU hotplug events. */ void register_cpu_notifier(struct notifier_block *nb); --=20 2.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel