Commit b553a1e0 authored by Glauber Costa's avatar Glauber Costa Committed by Ingo Molnar

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: default avatarGlauber Costa <gcosta@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 78e62270
...@@ -1319,13 +1319,11 @@ __init void prefill_possible_map(void) ...@@ -1319,13 +1319,11 @@ __init void prefill_possible_map(void)
static void __ref remove_cpu_from_maps(int cpu) static void __ref remove_cpu_from_maps(int cpu)
{ {
cpu_clear(cpu, cpu_online_map); cpu_clear(cpu, cpu_online_map);
#ifdef CONFIG_X86_64
cpu_clear(cpu, cpu_callout_map); cpu_clear(cpu, cpu_callout_map);
cpu_clear(cpu, cpu_callin_map); cpu_clear(cpu, cpu_callin_map);
/* was set by cpu_init() */ /* was set by cpu_init() */
clear_bit(cpu, (unsigned long *)&cpu_initialized); clear_bit(cpu, (unsigned long *)&cpu_initialized);
numa_remove_cpu(cpu); numa_remove_cpu(cpu);
#endif
} }
int __cpu_disable(void) int __cpu_disable(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment