]> xenbits.xensource.com Git - xen.git/commitdiff
x86/numa.c: use plain bool
authorWei Liu <wei.liu2@citrix.com>
Fri, 30 Jun 2017 16:50:14 +0000 (17:50 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 4 Jul 2017 13:54:42 +0000 (14:54 +0100)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/numa.c
xen/include/asm-x86/numa.h

index 6f4d4386902b6edb82e210dabbd04416abf25797..d45196fafcc10e18b805a60b593d6c3f06dabe45 100644 (file)
@@ -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
index 24792381b46b768a67b08c0ed19d2fcb5925cdad..bada2c0bb9886df3cafdbd74ec687aa19d78b6d6 100644 (file)
@@ -30,7 +30,7 @@ extern nodeid_t pxm_to_node(unsigned int pxm);
 
 extern void numa_add_cpu(int cpu);
 extern void numa_init_array(void);
-extern bool_t numa_off;
+extern bool numa_off;
 
 
 extern int srat_disabled(void);