summaryrefslogtreecommitdiff
path: root/xen/arch/x86/numa.c
diff options
context:
space:
mode:
authorWei Liu <wei.liu2@citrix.com>2017-06-30 17:50:14 +0100
committerWei Liu <wei.liu2@citrix.com>2017-07-04 14:54:42 +0100
commitebf5104125fa209bc9d3a7f7f6583254d32bd57c (patch)
tree734f946a57a526babb77d08f272c01619c09d396 /xen/arch/x86/numa.c
parent0d7c42106e22e4ecafa2cef0fa7058178849a558 (diff)
x86/numa.c: use plain bool
Signed-off-by: Wei Liu <wei.liu2@citrix.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Diffstat (limited to 'xen/arch/x86/numa.c')
-rw-r--r--xen/arch/x86/numa.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xen/arch/x86/numa.c b/xen/arch/x86/numa.c
index 6f4d438690..d45196fafc 100644
--- a/xen/arch/x86/numa.c
+++ b/xen/arch/x86/numa.c
@@ -49,7 +49,7 @@ cpumask_t node_to_cpumask[MAX_NUMNODES] __read_mostly;
nodemask_t __read_mostly node_online_map = { { [0] = 1UL } };
-bool_t numa_off = 0;
+bool numa_off;
s8 acpi_numa = 0;
int srat_disabled(void)
@@ -302,13 +302,13 @@ void numa_set_node(int cpu, nodeid_t node)
static __init int numa_setup(char *opt)
{
if ( !strncmp(opt,"off",3) )
- numa_off = 1;
+ numa_off = true;
if ( !strncmp(opt,"on",2) )
- numa_off = 0;
+ numa_off = false;
#ifdef CONFIG_NUMA_EMU
if ( !strncmp(opt, "fake=", 5) )
{
- numa_off = 0;
+ numa_off = false;
numa_fake = simple_strtoul(opt+5,NULL,0);
if ( numa_fake >= MAX_NUMNODES )
numa_fake = MAX_NUMNODES;
@@ -317,7 +317,7 @@ static __init int numa_setup(char *opt)
#ifdef CONFIG_ACPI_NUMA
if ( !strncmp(opt,"noacpi",6) )
{
- numa_off = 0;
+ numa_off = false;
acpi_numa = -1;
}
#endif