diff options
author | Alexey Starikovskiy <astarikovskiy@suse.de> | 2008-04-04 15:40:48 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:34 -0400 |
commit | 0fc0906e59df1427d194b78376d15ca48079f6bf (patch) | |
tree | b76f509e9028d7afd775d7e64fd6fbcfb733b068 /arch/x86/kernel | |
parent | 76eb41319d6ab98d17c81a8001a6d7ed9f8359ee (diff) |
x86: move phys_cpu_present_map to setup.c
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/mpparse_32.c | 5 | ||||
-rw-r--r-- | arch/x86/kernel/mpparse_64.c | 5 | ||||
-rw-r--r-- | arch/x86/kernel/setup.c | 4 | ||||
-rw-r--r-- | arch/x86/kernel/smpboot.c | 3 |
4 files changed, 4 insertions, 13 deletions
diff --git a/arch/x86/kernel/mpparse_32.c b/arch/x86/kernel/mpparse_32.c index 7b7e008496e..4f4cfad9ae5 100644 --- a/arch/x86/kernel/mpparse_32.c +++ b/arch/x86/kernel/mpparse_32.c | |||
@@ -69,11 +69,6 @@ unsigned int boot_cpu_physical_apicid = -1U; | |||
69 | #endif | 69 | #endif |
70 | #endif | 70 | #endif |
71 | 71 | ||
72 | /* Make it easy to share the UP and SMP code: */ | ||
73 | #ifndef CONFIG_X86_SMP | ||
74 | physid_mask_t phys_cpu_present_map; | ||
75 | #endif | ||
76 | |||
77 | /* | 72 | /* |
78 | * Intel MP BIOS table parsing routines: | 73 | * Intel MP BIOS table parsing routines: |
79 | */ | 74 | */ |
diff --git a/arch/x86/kernel/mpparse_64.c b/arch/x86/kernel/mpparse_64.c index 378c4ba80b4..8d7365511ac 100644 --- a/arch/x86/kernel/mpparse_64.c +++ b/arch/x86/kernel/mpparse_64.c | |||
@@ -70,11 +70,6 @@ unsigned int boot_cpu_physical_apicid = -1U; | |||
70 | #endif | 70 | #endif |
71 | #endif | 71 | #endif |
72 | 72 | ||
73 | /* Make it easy to share the UP and SMP code: */ | ||
74 | #ifndef CONFIG_X86_SMP | ||
75 | physid_mask_t phys_cpu_present_map; | ||
76 | #endif | ||
77 | |||
78 | /* | 73 | /* |
79 | * Intel MP BIOS table parsing routines: | 74 | * Intel MP BIOS table parsing routines: |
80 | */ | 75 | */ |
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 01119d9b013..011fcdd213f 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -9,11 +9,15 @@ | |||
9 | #include <asm/processor.h> | 9 | #include <asm/processor.h> |
10 | #include <asm/setup.h> | 10 | #include <asm/setup.h> |
11 | #include <asm/topology.h> | 11 | #include <asm/topology.h> |
12 | #include <asm/mpspec.h> | ||
12 | #include <asm/apicdef.h> | 13 | #include <asm/apicdef.h> |
13 | 14 | ||
14 | DEFINE_PER_CPU(u16, x86_cpu_to_apicid) = BAD_APICID; | 15 | DEFINE_PER_CPU(u16, x86_cpu_to_apicid) = BAD_APICID; |
15 | EXPORT_PER_CPU_SYMBOL(x86_cpu_to_apicid); | 16 | EXPORT_PER_CPU_SYMBOL(x86_cpu_to_apicid); |
16 | 17 | ||
18 | /* Bitmask of physically existing CPUs */ | ||
19 | physid_mask_t phys_cpu_present_map; | ||
20 | |||
17 | #if defined(CONFIG_HAVE_SETUP_PER_CPU_AREA) && defined(CONFIG_SMP) | 21 | #if defined(CONFIG_HAVE_SETUP_PER_CPU_AREA) && defined(CONFIG_SMP) |
18 | /* | 22 | /* |
19 | * Copy data used in early init routines from the initial arrays to the | 23 | * Copy data used in early init routines from the initial arrays to the |
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 412061a0bf2..7e6aa1c790a 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -88,9 +88,6 @@ u8 apicid_2_node[MAX_APICID]; | |||
88 | /* Internal processor count */ | 88 | /* Internal processor count */ |
89 | unsigned int num_processors; | 89 | unsigned int num_processors; |
90 | 90 | ||
91 | /* Bitmask of physically existing CPUs */ | ||
92 | physid_mask_t phys_cpu_present_map; | ||
93 | |||
94 | /* State of each CPU */ | 91 | /* State of each CPU */ |
95 | DEFINE_PER_CPU(int, cpu_state) = { 0 }; | 92 | DEFINE_PER_CPU(int, cpu_state) = { 0 }; |
96 | 93 | ||