diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-03-03 12:12:58 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:56 -0400 |
commit | a355352b97901d987f54ea7c7d7161eb51a3799c (patch) | |
tree | 70ccde573fa07e8d2c38c113aef0718d9dc31fa6 /arch/x86/kernel/smpboot.c | |
parent | 5382e89670399f9db8a58b3c6f850fa4a94f6cca (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.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index bffe10861390..40a3b56952ef 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 */ | ||
6 | int smp_num_siblings = 1; | ||
7 | EXPORT_SYMBOL(smp_num_siblings); | ||
8 | |||
9 | /* Last level cache ID of each logical CPU */ | ||
10 | DEFINE_PER_CPU(u16, cpu_llc_id) = BAD_APICID; | ||
11 | |||
12 | /* bitmap of online cpus */ | ||
13 | cpumask_t cpu_online_map __read_mostly; | ||
14 | EXPORT_SYMBOL(cpu_online_map); | ||
15 | |||
16 | cpumask_t cpu_callin_map; | ||
17 | cpumask_t cpu_callout_map; | ||
18 | cpumask_t cpu_possible_map; | ||
19 | EXPORT_SYMBOL(cpu_possible_map); | ||
20 | |||
21 | /* representing HT siblings of each logical CPU */ | ||
22 | DEFINE_PER_CPU(cpumask_t, cpu_sibling_map); | ||
23 | EXPORT_PER_CPU_SYMBOL(cpu_sibling_map); | ||
24 | |||
25 | /* representing HT and core siblings of each logical CPU */ | ||
26 | DEFINE_PER_CPU(cpumask_t, cpu_core_map); | ||
27 | EXPORT_PER_CPU_SYMBOL(cpu_core_map); | ||
28 | |||
29 | /* Per CPU bogomips and other parameters */ | ||
30 | DEFINE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info); | ||
31 | EXPORT_PER_CPU_SYMBOL(cpu_info); | ||
4 | #ifdef CONFIG_HOTPLUG_CPU | 32 | #ifdef CONFIG_HOTPLUG_CPU |
5 | 33 | ||
6 | int additional_cpus __initdata = -1; | 34 | int additional_cpus __initdata = -1; |