diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-06-04 01:03:07 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 06:48:23 -0400 |
commit | 78e622705c69da9649ba87071d8de85054b62df8 (patch) | |
tree | 37d619d4d8c262799cdee3254dcaecd0147c68cb /arch/x86/kernel/smpboot.c | |
parent | b5841765a2e735a38612c4e4a82170c33d701b3c (diff) |
x86: change naming to match x86_64
Change unmap_cpu_to_logical_apicid to numa_remove_cpu.
Besides being shorter, it is the same name x86_64 uses. We
can save an ifdef in the code this way.
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 | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index a569f06d789e..b99c386af77d 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -181,13 +181,12 @@ static void map_cpu_to_logical_apicid(void) | |||
181 | map_cpu_to_node(cpu, node); | 181 | map_cpu_to_node(cpu, node); |
182 | } | 182 | } |
183 | 183 | ||
184 | static void unmap_cpu_to_logical_apicid(int cpu) | 184 | static void numa_remove_cpu(int cpu) |
185 | { | 185 | { |
186 | cpu_2_logical_apicid[cpu] = BAD_APICID; | 186 | cpu_2_logical_apicid[cpu] = BAD_APICID; |
187 | unmap_cpu_to_node(cpu); | 187 | unmap_cpu_to_node(cpu); |
188 | } | 188 | } |
189 | #else | 189 | #else |
190 | #define unmap_cpu_to_logical_apicid(cpu) do {} while (0) | ||
191 | #define map_cpu_to_logical_apicid() do {} while (0) | 190 | #define map_cpu_to_logical_apicid() do {} while (0) |
192 | #endif | 191 | #endif |
193 | 192 | ||
@@ -946,10 +945,7 @@ restore_state: | |||
946 | 945 | ||
947 | if (boot_error) { | 946 | if (boot_error) { |
948 | /* Try to put things back the way they were before ... */ | 947 | /* Try to put things back the way they were before ... */ |
949 | unmap_cpu_to_logical_apicid(cpu); | ||
950 | #ifdef CONFIG_X86_64 | ||
951 | numa_remove_cpu(cpu); /* was set by numa_add_cpu */ | 948 | numa_remove_cpu(cpu); /* was set by numa_add_cpu */ |
952 | #endif | ||
953 | cpu_clear(cpu, cpu_callout_map); /* was set by do_boot_cpu() */ | 949 | cpu_clear(cpu, cpu_callout_map); /* was set by do_boot_cpu() */ |
954 | cpu_clear(cpu, cpu_initialized); /* was set by cpu_init() */ | 950 | cpu_clear(cpu, cpu_initialized); /* was set by cpu_init() */ |
955 | cpu_clear(cpu, cpu_present_map); | 951 | cpu_clear(cpu, cpu_present_map); |
@@ -1244,7 +1240,7 @@ void cpu_exit_clear(void) | |||
1244 | cpu_clear(cpu, cpu_callout_map); | 1240 | cpu_clear(cpu, cpu_callout_map); |
1245 | cpu_clear(cpu, cpu_callin_map); | 1241 | cpu_clear(cpu, cpu_callin_map); |
1246 | 1242 | ||
1247 | unmap_cpu_to_logical_apicid(cpu); | 1243 | numa_remove_cpu(cpu); |
1248 | } | 1244 | } |
1249 | # endif /* CONFIG_X86_32 */ | 1245 | # endif /* CONFIG_X86_32 */ |
1250 | 1246 | ||