Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99855
b: refs/heads/master
c: 78e6227
h: refs/heads/master
i:
  99853: 58c51e9
  99851: 816fff5
  99847: 2bfb55e
  99839: 68d3e05
v: v3
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Jul 8, 2008
1 parent a6b9f44 commit b97351e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b5841765a2e735a38612c4e4a82170c33d701b3c
refs/heads/master: 78e622705c69da9649ba87071d8de85054b62df8
8 changes: 2 additions & 6 deletions trunk/arch/x86/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,12 @@ static void map_cpu_to_logical_apicid(void)
map_cpu_to_node(cpu, node);
}

static void unmap_cpu_to_logical_apicid(int cpu)
static void numa_remove_cpu(int cpu)
{
cpu_2_logical_apicid[cpu] = BAD_APICID;
unmap_cpu_to_node(cpu);
}
#else
#define unmap_cpu_to_logical_apicid(cpu) do {} while (0)
#define map_cpu_to_logical_apicid() do {} while (0)
#endif

Expand Down Expand Up @@ -946,10 +945,7 @@ static int __cpuinit do_boot_cpu(int apicid, int cpu)

if (boot_error) {
/* Try to put things back the way they were before ... */
unmap_cpu_to_logical_apicid(cpu);
#ifdef CONFIG_X86_64
numa_remove_cpu(cpu); /* was set by numa_add_cpu */
#endif
cpu_clear(cpu, cpu_callout_map); /* was set by do_boot_cpu() */
cpu_clear(cpu, cpu_initialized); /* was set by cpu_init() */
cpu_clear(cpu, cpu_present_map);
Expand Down Expand Up @@ -1244,7 +1240,7 @@ void cpu_exit_clear(void)
cpu_clear(cpu, cpu_callout_map);
cpu_clear(cpu, cpu_callin_map);

unmap_cpu_to_logical_apicid(cpu);
numa_remove_cpu(cpu);
}
# endif /* CONFIG_X86_32 */

Expand Down

0 comments on commit b97351e

Please sign in to comment.