Skip to content

Commit cef5076

Browse files
author
Linus Torvalds
committed
Revert "[PATCH] x86_64: Fix the node cpumask of a cpu going down"
This reverts commit 10f4dc8. Quoth Andi Kleen: "Kiran decided that it makes the problem worse than it was before. Fixing it fully requires more work which is too much for 2.6.16. So please revert that commit for now." Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 5b7b644 commit cef5076

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

‎arch/x86_64/kernel/smpboot.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
#include <asm/nmi.h>
6060
#include <asm/irq.h>
6161
#include <asm/hw_irq.h>
62-
#include <asm/numa.h>
6362

6463
/* Number of siblings per CPU package */
6564
int smp_num_siblings = 1;
@@ -891,7 +890,6 @@ static int __cpuinit do_boot_cpu(int cpu, int apicid)
891890
if (boot_error) {
892891
cpu_clear(cpu, cpu_callout_map); /* was set here (do_boot_cpu()) */
893892
clear_bit(cpu, &cpu_initialized); /* was set by cpu_init() */
894-
clear_node_cpumask(cpu); /* was set by numa_add_cpu */
895893
cpu_clear(cpu, cpu_present_map);
896894
cpu_clear(cpu, cpu_possible_map);
897895
x86_cpu_to_apicid[cpu] = BAD_APICID;
@@ -1189,7 +1187,6 @@ void remove_cpu_from_maps(void)
11891187
cpu_clear(cpu, cpu_callout_map);
11901188
cpu_clear(cpu, cpu_callin_map);
11911189
clear_bit(cpu, &cpu_initialized); /* was set by cpu_init() */
1192-
clear_node_cpumask(cpu);
11931190
}
11941191

11951192
int __cpu_disable(void)

‎include/asm-x86_64/numa.h‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,8 @@ extern void numa_set_node(int cpu, int node);
2222
extern unsigned char apicid_to_node[256];
2323
#ifdef CONFIG_NUMA
2424
extern void __init init_cpu_to_node(void);
25-
26-
static inline void clear_node_cpumask(int cpu)
27-
{
28-
clear_bit(cpu, &node_to_cpumask[cpu_to_node(cpu)]);
29-
}
30-
3125
#else
3226
#define init_cpu_to_node() do {} while (0)
33-
#define clear_node_cpumask(cpu) do {} while (0)
3427
#endif
3528

3629
#define NUMA_NO_NODE 0xff

0 commit comments

Comments
 (0)