From patchwork Wed Jun 28 14:18:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 9814397 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 9724A603F3 for ; Wed, 28 Jun 2017 14:20:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 88DDC28517 for ; Wed, 28 Jun 2017 14:20:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D06728576; Wed, 28 Jun 2017 14:20:48 +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.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED 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 1317428575 for ; Wed, 28 Jun 2017 14:20:48 +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 1dQDnc-00021J-LC; Wed, 28 Jun 2017 14:18:32 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQDnb-00020a-Dc for xen-devel@lists.xenproject.org; Wed, 28 Jun 2017 14:18:31 +0000 Received: from [193.109.254.147] by server-6.bemta-6.messagelabs.com id 48/60-03937-6BAB3595; Wed, 28 Jun 2017 14:18:30 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphkeJIrShJLcpLzFFi42JxWrohUnfbruB Ig7f9khbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8bRuTkFmwUr9n25ztTAeJi3i5GTQ0LAX+LX jU0sIDabgLLEz85eNhBbREBPounAc0YQm1kgT+Ls6kWsILawgKnEi5M7mUFsFgFVif9354PZv AIWEueP32KBmCkvsavtIlg9p4ClxP6PG8HiQkA1TXcPQtkKEh3TjzFB9ApKnJz5hAVil4TEwR cvmCcw8s5CkpqFJLWAkWkVo0ZxalFZapGuoaFeUlFmekZJbmJmjq6hgZlebmpxcWJ6ak5iUrF ecn7uJkZg6DAAwQ7GT8sCDjFKcjApifLu/RIUKcSXlJ9SmZFYnBFfVJqTWnyIUYaDQ0mC9+7O 4EghwaLU9NSKtMwcYBDDpCU4eJREeHdtBUrzFhck5hZnpkOkTjEqSonz8gJDX0gAJJFRmgfXB oucS4yyUsK8jECHCPEUpBblZpagyr9iFOdgVBLmnbMDaApPZl4J3PRXQIuZgBazzAsAWVySiJ CSamAMfj1DZGLfzMbXsWuO3fyvrRV+Sv/Oxl7WcwaLD91ceNXgAesTkRiH6sW35ufl9eUEH7I SKrZUZNXwUMzXrH/dJL/3EAd7xrpCfePJa7TTnB4qWKm+WXdAZv/WZzva5a9YznfuzWDkligL LVcsOu28/PYytlmVkxJuNT/lzhLOZrNcFG4m+UqJpTgj0VCLuag4EQANyyrqlwIAAA== X-Env-Sender: prvs=3451ee960=wei.liu2@citrix.com X-Msg-Ref: server-5.tower-27.messagelabs.com!1498659508!99124001!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 39466 invoked from network); 28 Jun 2017 14:18:30 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-5.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 28 Jun 2017 14:18:30 -0000 X-IronPort-AV: E=Sophos;i="5.40,275,1496102400"; d="scan'208";a="429670420" From: Wei Liu To: Xen-devel Date: Wed, 28 Jun 2017 15:18:23 +0100 Message-ID: <20170628141827.19046-5-wei.liu2@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170628141827.19046-1-wei.liu2@citrix.com> References: <20170628141827.19046-1-wei.liu2@citrix.com> MIME-Version: 1.0 Cc: Andrew Cooper , Wei Liu , Jan Beulich Subject: [Xen-devel] [PATCH 4/8] x86/dom0_build.c: use plain bool 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 Signed-off-by: Wei Liu --- xen/arch/x86/dom0_build.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xen/arch/x86/dom0_build.c b/xen/arch/x86/dom0_build.c index cc8acad688..0c125e61eb 100644 --- a/xen/arch/x86/dom0_build.c +++ b/xen/arch/x86/dom0_build.c @@ -83,7 +83,7 @@ custom_param("dom0_max_vcpus", parse_dom0_max_vcpus); static __initdata unsigned int dom0_nr_pxms; static __initdata unsigned int dom0_pxms[MAX_NUMNODES] = { [0 ... MAX_NUMNODES - 1] = ~0 }; -static __initdata bool_t dom0_affinity_relaxed; +static __initdata bool dom0_affinity_relaxed; static void __init parse_dom0_nodes(const char *s) { @@ -92,12 +92,12 @@ static void __init parse_dom0_nodes(const char *s) dom0_pxms[dom0_nr_pxms] = simple_strtoul(s, &s, 0); else if ( !strncmp(s, "relaxed", 7) && (!s[7] || s[7] == ',') ) { - dom0_affinity_relaxed = 1; + dom0_affinity_relaxed = true; s += 7; } else if ( !strncmp(s, "strict", 6) && (!s[6] || s[6] == ',') ) { - dom0_affinity_relaxed = 0; + dom0_affinity_relaxed = false; s += 6; } else @@ -208,7 +208,7 @@ custom_param("dom0", parse_dom0_param); static char __initdata opt_dom0_ioports_disable[200] = ""; string_param("dom0_ioports_disable", opt_dom0_ioports_disable); -static bool_t __initdata ro_hpet = 1; +static bool __initdata ro_hpet = true; boolean_param("ro-hpet", ro_hpet); unsigned int __initdata dom0_memflags = MEMF_no_dma|MEMF_exact_node; @@ -229,7 +229,7 @@ unsigned long __init dom0_compute_nr_pages( { nodeid_t node; unsigned long avail = 0, nr_pages, min_pages, max_pages; - bool_t need_paging; + bool need_paging; for_each_node_mask ( node, dom0_nodes ) avail += avail_domheap_pages_region(node, 0, 0) + @@ -253,7 +253,7 @@ unsigned long __init dom0_compute_nr_pages( need_paging = is_hvm_domain(d) && (!iommu_hap_pt_share || !paging_mode_hap(d)); - for ( ; ; need_paging = 0 ) + for ( ; ; need_paging = false ) { nr_pages = dom0_nrpages; min_pages = dom0_min_nrpages;