aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-06-04 01:05:03 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 06:48:23 -0400
commitb553a1e0ff48bd66fd18f705370e47c0b4ecea61 (patch)
tree016f526dcf9b9bc63efbfd7abaf755f27118ac11 /arch
parent78e622705c69da9649ba87071d8de85054b62df8 (diff)
x86: remove cpu from maps
during cpu disable, take cpus out of all maps in i386, instead of just the online map. Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/smpboot.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index b99c386af77d..820c23dbe761 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -1319,13 +1319,11 @@ __init void prefill_possible_map(void)
1319static void __ref remove_cpu_from_maps(int cpu) 1319static void __ref remove_cpu_from_maps(int cpu)
1320{ 1320{
1321 cpu_clear(cpu, cpu_online_map); 1321 cpu_clear(cpu, cpu_online_map);
1322#ifdef CONFIG_X86_64
1323 cpu_clear(cpu, cpu_callout_map); 1322 cpu_clear(cpu, cpu_callout_map);
1324 cpu_clear(cpu, cpu_callin_map); 1323 cpu_clear(cpu, cpu_callin_map);
1325 /* was set by cpu_init() */ 1324 /* was set by cpu_init() */
1326 clear_bit(cpu, (unsigned long *)&cpu_initialized); 1325 clear_bit(cpu, (unsigned long *)&cpu_initialized);
1327 numa_remove_cpu(cpu); 1326 numa_remove_cpu(cpu);
1328#endif
1329} 1327}
1330 1328
1331int __cpu_disable(void) 1329int __cpu_disable(void)