aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-03-03 12:12:57 -0500
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:40:56 -0400
commit5382e89670399f9db8a58b3c6f850fa4a94f6cca (patch)
tree8106996ab3c1d5c2e6880fc87c050ac884914a21
parentfe6762030ca3728d3e24b556676114a6a64a97be (diff)
x86: adjust types in smpcommon_32.c
so they can have the same type as x86_64 Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/smpboot_32.c6
-rw-r--r--include/asm-x86/smp_32.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/kernel/smpboot_32.c b/arch/x86/kernel/smpboot_32.c
index 579b9b740c7c..5a446f079b33 100644
--- a/arch/x86/kernel/smpboot_32.c
+++ b/arch/x86/kernel/smpboot_32.c
@@ -67,7 +67,7 @@ int smp_num_siblings = 1;
67EXPORT_SYMBOL(smp_num_siblings); 67EXPORT_SYMBOL(smp_num_siblings);
68 68
69/* Last level cache ID of each logical CPU */ 69/* Last level cache ID of each logical CPU */
70DEFINE_PER_CPU(u8, cpu_llc_id) = BAD_APICID; 70DEFINE_PER_CPU(u16, cpu_llc_id) = BAD_APICID;
71 71
72/* representing HT siblings of each logical CPU */ 72/* representing HT siblings of each logical CPU */
73DEFINE_PER_CPU(cpumask_t, cpu_sibling_map); 73DEFINE_PER_CPU(cpumask_t, cpu_sibling_map);
@@ -92,10 +92,10 @@ DEFINE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info);
92EXPORT_PER_CPU_SYMBOL(cpu_info); 92EXPORT_PER_CPU_SYMBOL(cpu_info);
93 93
94/* which logical CPU number maps to which CPU (physical APIC ID) */ 94/* which logical CPU number maps to which CPU (physical APIC ID) */
95u8 x86_cpu_to_apicid_init[NR_CPUS] __initdata = 95u16 x86_cpu_to_apicid_init[NR_CPUS] __initdata =
96 { [0 ... NR_CPUS-1] = BAD_APICID }; 96 { [0 ... NR_CPUS-1] = BAD_APICID };
97void *x86_cpu_to_apicid_early_ptr; 97void *x86_cpu_to_apicid_early_ptr;
98DEFINE_PER_CPU(u8, x86_cpu_to_apicid) = BAD_APICID; 98DEFINE_PER_CPU(u16, x86_cpu_to_apicid) = BAD_APICID;
99EXPORT_PER_CPU_SYMBOL(x86_cpu_to_apicid); 99EXPORT_PER_CPU_SYMBOL(x86_cpu_to_apicid);
100 100
101u8 apicid_2_node[MAX_APICID]; 101u8 apicid_2_node[MAX_APICID];
diff --git a/include/asm-x86/smp_32.h b/include/asm-x86/smp_32.h
index 41b58e0bc75b..29f61952ea8c 100644
--- a/include/asm-x86/smp_32.h
+++ b/include/asm-x86/smp_32.h
@@ -21,13 +21,13 @@ extern cpumask_t cpu_callin_map;
21extern void (*mtrr_hook) (void); 21extern void (*mtrr_hook) (void);
22extern void zap_low_mappings (void); 22extern void zap_low_mappings (void);
23 23
24extern u8 __initdata x86_cpu_to_apicid_init[]; 24extern u16 __initdata x86_cpu_to_apicid_init[];
25extern void *x86_cpu_to_apicid_early_ptr; 25extern void *x86_cpu_to_apicid_early_ptr;
26 26
27DECLARE_PER_CPU(cpumask_t, cpu_sibling_map); 27DECLARE_PER_CPU(cpumask_t, cpu_sibling_map);
28DECLARE_PER_CPU(cpumask_t, cpu_core_map); 28DECLARE_PER_CPU(cpumask_t, cpu_core_map);
29DECLARE_PER_CPU(u8, cpu_llc_id); 29DECLARE_PER_CPU(u16, cpu_llc_id);
30DECLARE_PER_CPU(u8, x86_cpu_to_apicid); 30DECLARE_PER_CPU(u16, x86_cpu_to_apicid);
31 31
32#ifdef CONFIG_HOTPLUG_CPU 32#ifdef CONFIG_HOTPLUG_CPU
33extern void cpu_exit_clear(void); 33extern void cpu_exit_clear(void);