[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86: __{cpu, dev}initdata drop follow-up
commit 7a5223f62d3adccd95877d50bf70306b4594df72 Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Thu Dec 3 15:34:41 2015 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Thu Dec 3 15:34:41 2015 +0100 x86: __{cpu,dev}initdata drop follow-up While reviewing those patches I noticed a few types that could do with tweaking. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/arch/x86/cpu/amd.c | 4 +--- xen/arch/x86/cpu/intel_cacheinfo.c | 2 +- xen/arch/x86/numa.c | 5 ++--- xen/include/asm-x86/acpi.h | 2 +- xen/include/asm-x86/numa.h | 2 +- 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/xen/arch/x86/cpu/amd.c b/xen/arch/x86/cpu/amd.c index c51aa16..8ec841b 100644 --- a/xen/arch/x86/cpu/amd.c +++ b/xen/arch/x86/cpu/amd.c @@ -332,8 +332,6 @@ static void disable_c1_ramping(void) } } -int force_mwait; - static void disable_c1e(void *unused) { uint64_t msr_content; @@ -510,7 +508,7 @@ static void init_amd(struct cpuinfo_x86 *c) amd_get_topology(c); /* Pointless to use MWAIT on Family10 as it does not deep sleep. */ - if (c->x86 >= 0x10 && !force_mwait) + if (c->x86 == 0x10) __clear_bit(X86_FEATURE_MWAIT, c->x86_capability); if (!cpu_has_amd_erratum(c, AMD_ERRATUM_121)) diff --git a/xen/arch/x86/cpu/intel_cacheinfo.c b/xen/arch/x86/cpu/intel_cacheinfo.c index 980aa59..bb02fe7 100644 --- a/xen/arch/x86/cpu/intel_cacheinfo.c +++ b/xen/arch/x86/cpu/intel_cacheinfo.c @@ -27,7 +27,7 @@ struct _cache_table }; /* all the cache descriptor types we care about (no TLB or trace cache entries) */ -static struct _cache_table cache_table[] = +static const struct _cache_table cache_table[] = { { 0x06, LVL_1_INST, 8 }, /* 4-way set assoc, 32 byte line size */ { 0x08, LVL_1_INST, 16 }, /* 4-way set assoc, 32 byte line size */ diff --git a/xen/arch/x86/numa.c b/xen/arch/x86/numa.c index 9ba47b4..b7abc02 100644 --- a/xen/arch/x86/numa.c +++ b/xen/arch/x86/numa.c @@ -49,9 +49,8 @@ cpumask_t node_to_cpumask[MAX_NUMNODES] __read_mostly; nodemask_t __read_mostly node_online_map = { { [0] = 1UL } }; -int numa_off = 0; - -int acpi_numa; +bool_t numa_off = 0; +s8 acpi_numa = 0; int srat_disabled(void) { diff --git a/xen/include/asm-x86/acpi.h b/xen/include/asm-x86/acpi.h index cf479a9..d3bde78 100644 --- a/xen/include/asm-x86/acpi.h +++ b/xen/include/asm-x86/acpi.h @@ -107,7 +107,7 @@ extern void acpi_reserve_bootmem(void); #define ARCH_HAS_POWER_INIT 1 -extern int acpi_numa; +extern s8 acpi_numa; extern int acpi_scan_nodes(u64 start, u64 end); #define NR_NODE_MEMBLKS (MAX_NUMNODES*2) diff --git a/xen/include/asm-x86/numa.h b/xen/include/asm-x86/numa.h index 0c5e5b4..9a2d7cc 100644 --- a/xen/include/asm-x86/numa.h +++ b/xen/include/asm-x86/numa.h @@ -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 int numa_off; +extern bool_t numa_off; extern int srat_disabled(void); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |