aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/smpboot.c
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-03-03 12:12:58 -0500
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:40:56 -0400
commita355352b97901d987f54ea7c7d7161eb51a3799c (patch)
tree70ccde573fa07e8d2c38c113aef0718d9dc31fa6 /arch/x86/kernel/smpboot.c
parent5382e89670399f9db8a58b3c6f850fa4a94f6cca (diff)
x86: move equal types to common file
move definitions that are now equal in type from smpboot_{32,64}.c to smpboot.c cpu_callin_map is put temporarily in smp_64.h (already exists in smp_32.h), and will soon be merged. Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r--arch/x86/kernel/smpboot.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index bffe1086139..40a3b56952e 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -1,6 +1,34 @@
1#include <linux/init.h> 1#include <linux/init.h>
2#include <linux/smp.h> 2#include <linux/smp.h>
3#include <linux/module.h>
3 4
5/* Number of siblings per CPU package */
6int smp_num_siblings = 1;
7EXPORT_SYMBOL(smp_num_siblings);
8
9/* Last level cache ID of each logical CPU */
10DEFINE_PER_CPU(u16, cpu_llc_id) = BAD_APICID;
11
12/* bitmap of online cpus */
13cpumask_t cpu_online_map __read_mostly;
14EXPORT_SYMBOL(cpu_online_map);
15
16cpumask_t cpu_callin_map;
17cpumask_t cpu_callout_map;
18cpumask_t cpu_possible_map;
19EXPORT_SYMBOL(cpu_possible_map);
20
21/* representing HT siblings of each logical CPU */
22DEFINE_PER_CPU(cpumask_t, cpu_sibling_map);
23EXPORT_PER_CPU_SYMBOL(cpu_sibling_map);
24
25/* representing HT and core siblings of each logical CPU */
26DEFINE_PER_CPU(cpumask_t, cpu_core_map);
27EXPORT_PER_CPU_SYMBOL(cpu_core_map);
28
29/* Per CPU bogomips and other parameters */
30DEFINE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info);
31EXPORT_PER_CPU_SYMBOL(cpu_info);
4#ifdef CONFIG_HOTPLUG_CPU 32#ifdef CONFIG_HOTPLUG_CPU
5 33
6int additional_cpus __initdata = -1; 34int additional_cpus __initdata = -1;