From: Wei Liu <wei.liu2@citrix.com>
To: Xen-devel <xen-devel@lists.xenproject.org>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Wei Liu <wei.liu2@citrix.com>, Jan Beulich <JBeulich@suse.com>
Subject: [PATCH 8/8] x86/setup.c: use plain bool
Date: Wed, 28 Jun 2017 15:18:27 +0100 [thread overview]
Message-ID: <20170628141827.19046-9-wei.liu2@citrix.com> (raw)
In-Reply-To: <20170628141827.19046-1-wei.liu2@citrix.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
xen/arch/x86/setup.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c
index f7b927858c..db5df6956d 100644
--- a/xen/arch/x86/setup.c
+++ b/xen/arch/x86/setup.c
@@ -53,7 +53,7 @@
#include <asm/cpuid.h>
/* opt_nosmp: If true, secondary processors are ignored. */
-static bool_t __initdata opt_nosmp;
+static bool __initdata opt_nosmp;
boolean_param("nosmp", opt_nosmp);
/* maxcpus: maximum number of CPUs to activate. */
@@ -151,8 +151,8 @@ static void __init parse_smap_param(char *s)
}
custom_param("smap", parse_smap_param);
-bool_t __read_mostly acpi_disabled;
-bool_t __initdata acpi_force;
+bool __read_mostly acpi_disabled;
+bool __initdata acpi_force;
static char __initdata acpi_param[10] = "";
static void __init parse_acpi_param(char *s)
{
@@ -166,9 +166,9 @@ static void __init parse_acpi_param(char *s)
}
else if ( !strcmp(s, "force") )
{
- acpi_force = 1;
+ acpi_force = true;
acpi_ht = 1;
- acpi_disabled = 0;
+ acpi_disabled = false;
}
else if ( !strcmp(s, "ht") )
{
@@ -338,7 +338,7 @@ static void *__init bootstrap_map(const module_t *mod)
}
static void *__init move_memory(
- uint64_t dst, uint64_t src, unsigned int size, bool_t keep)
+ uint64_t dst, uint64_t src, unsigned int size, bool keep)
{
unsigned int blksz = BOOTSTRAP_MAP_LIMIT - BOOTSTRAP_MAP_BASE;
unsigned int mask = (1L << L2_PAGETABLE_SHIFT) - 1;
@@ -515,14 +515,14 @@ static void __init kexec_reserve_area(struct e820map *e820)
#ifdef CONFIG_KEXEC
unsigned long kdump_start = kexec_crash_area.start;
unsigned long kdump_size = kexec_crash_area.size;
- static bool_t __initdata is_reserved = 0;
+ static bool __initdata is_reserved = false;
kdump_size = (kdump_size + PAGE_SIZE - 1) & PAGE_MASK;
if ( (kdump_start == 0) || (kdump_size == 0) || is_reserved )
return;
- is_reserved = 1;
+ is_reserved = true;
if ( !reserve_e820_ram(e820, kdump_start, kdump_start + kdump_size) )
{
@@ -538,7 +538,7 @@ static void __init kexec_reserve_area(struct e820map *e820)
#endif
}
-static inline bool_t using_2M_mapping(void)
+static inline bool using_2M_mapping(void)
{
return !l1_table_offset((unsigned long)__2M_text_end) &&
!l1_table_offset((unsigned long)__2M_rodata_start) &&
@@ -601,7 +601,7 @@ static void __init noreturn reinit_bsp_stack(void)
reset_stack_and_jump(init_done);
}
-static bool_t __init loader_is_grub2(const char *loader_name)
+static bool __init loader_is_grub2(const char *loader_name)
{
/* GRUB1="GNU GRUB 0.xx"; GRUB2="GRUB 1.xx" */
const char *p = strstr(loader_name, "GRUB ");
@@ -638,7 +638,7 @@ void __init noreturn __start_xen(unsigned long mbi_p)
module_t *mod = (module_t *)__va(mbi->mods_addr);
unsigned long nr_pages, raw_max_page, modules_headroom, *module_map;
int i, j, e820_warn = 0, bytes = 0;
- bool_t acpi_boot_table_init_done = 0;
+ bool acpi_boot_table_init_done = false;
struct domain *dom0;
struct ns16550_defaults ns16550 = {
.data_bits = 8,
@@ -1166,7 +1166,7 @@ void __init noreturn __start_xen(unsigned long mbi_p)
s >= (1ULL << 32) &&
!acpi_boot_table_init() )
{
- acpi_boot_table_init_done = 1;
+ acpi_boot_table_init_done = true;
srat_parse_regions(s);
setup_max_pdx(raw_max_page);
}
--
2.11.0
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-06-28 14:18 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-28 14:18 [PATCH 0/8] x86: bool_t to bool cleanup Wei Liu
2017-06-28 14:18 ` [PATCH 1/8] x86/irq.c: use plain bool Wei Liu
2017-06-28 14:21 ` Andrew Cooper
2017-06-29 6:53 ` Jan Beulich
2017-06-29 10:35 ` Wei Liu
2017-06-28 14:18 ` [PATCH 2/8] x86/platform_hypercall.c: " Wei Liu
2017-06-28 14:21 ` Andrew Cooper
2017-06-28 14:18 ` [PATCH 3/8] x86/domain.c: " Wei Liu
2017-06-28 14:22 ` Andrew Cooper
2017-06-29 6:55 ` Jan Beulich
2017-06-28 14:18 ` [PATCH 4/8] x86/dom0_build.c: " Wei Liu
2017-06-28 14:18 ` [PATCH 5/8] x86/crash.c: " Wei Liu
2017-06-28 14:18 ` [PATCH 6/8] x86/time.c: " Wei Liu
2017-06-29 6:59 ` Jan Beulich
2017-06-28 14:18 ` [PATCH 7/8] x86/nmi.c: " Wei Liu
2017-06-28 14:18 ` Wei Liu [this message]
2017-06-28 14:26 ` [PATCH 8/8] x86/setup.c: " Andrew Cooper
2017-06-28 14:57 ` Wei Liu
2017-06-28 16:21 ` Andrew Cooper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170628141827.19046-9-wei.liu2@citrix.com \
--to=wei.liu2@citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).