Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99857
b: refs/heads/master
c: 1481a3d
h: refs/heads/master
i:
  99855: b97351e
v: v3
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Jul 8, 2008
1 parent 418f23e commit 01716cc
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 20 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: b553a1e0ff48bd66fd18f705370e47c0b4ecea61
refs/heads/master: 1481a3dd42c21ac4a8b9497cb9f5df816d6b064f
16 changes: 16 additions & 0 deletions trunk/arch/x86/kernel/process_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,22 @@ unsigned long thread_saved_pc(struct task_struct *tsk)

#ifdef CONFIG_HOTPLUG_CPU
#include <asm/nmi.h>

static void cpu_exit_clear(void)
{
int cpu = raw_smp_processor_id();

idle_task_exit();

cpu_uninit();
irq_ctx_exit(cpu);

cpu_clear(cpu, cpu_callout_map);
cpu_clear(cpu, cpu_callin_map);

numa_remove_cpu(cpu);
}

/* We don't actually take CPU down, just spin without interrupts. */
static inline void play_dead(void)
{
Expand Down
19 changes: 1 addition & 18 deletions trunk/arch/x86/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static void map_cpu_to_logical_apicid(void)
map_cpu_to_node(cpu, node);
}

static void numa_remove_cpu(int cpu)
void numa_remove_cpu(int cpu)
{
cpu_2_logical_apicid[cpu] = BAD_APICID;
unmap_cpu_to_node(cpu);
Expand Down Expand Up @@ -1227,23 +1227,6 @@ void __init native_smp_cpus_done(unsigned int max_cpus)

#ifdef CONFIG_HOTPLUG_CPU

# ifdef CONFIG_X86_32
void cpu_exit_clear(void)
{
int cpu = raw_smp_processor_id();

idle_task_exit();

cpu_uninit();
irq_ctx_exit(cpu);

cpu_clear(cpu, cpu_callout_map);
cpu_clear(cpu, cpu_callin_map);

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

static void remove_siblinginfo(int cpu)
{
int sibling;
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-x86/numa_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define _ASM_X86_32_NUMA_H 1

extern int pxm_to_nid(int pxm);
extern void numa_remove_cpu(int cpu);

#ifdef CONFIG_NUMA
extern void __init remap_numa_kva(void);
Expand Down
1 change: 0 additions & 1 deletion trunk/include/asm-x86/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ static inline int hard_smp_processor_id(void)
#endif /* CONFIG_X86_LOCAL_APIC */

#ifdef CONFIG_HOTPLUG_CPU
extern void cpu_exit_clear(void);
extern void cpu_uninit(void);
#endif

Expand Down

0 comments on commit 01716cc

Please sign in to comment.