Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243582
b: refs/heads/master
c: b527d07
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt committed Apr 1, 2011
1 parent f75fddc commit aa58976
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 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: 4fcb8833af3355065bd8bffcd338eabc6f3a38a0
refs/heads/master: b527d07114fdab83f39040c69b4b0a4b1b232c16
1 change: 0 additions & 1 deletion trunk/arch/powerpc/include/asm/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ DECLARE_PER_CPU(unsigned int, cpu_pvr);
#ifdef CONFIG_HOTPLUG_CPU
extern void fixup_irqs(const struct cpumask *map);
int generic_cpu_disable(void);
int generic_cpu_enable(unsigned int cpu);
void generic_cpu_die(unsigned int cpu);
void generic_mach_cpu_die(void);
#endif
Expand Down
22 changes: 0 additions & 22 deletions trunk/arch/powerpc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,28 +322,6 @@ int generic_cpu_disable(void)
return 0;
}

int generic_cpu_enable(unsigned int cpu)
{
/* Do the normal bootup if we haven't
* already bootstrapped. */
if (system_state != SYSTEM_RUNNING)
return -ENOSYS;

/* get the target out of it's holding state */
per_cpu(cpu_state, cpu) = CPU_UP_PREPARE;
smp_wmb();

while (!cpu_online(cpu))
cpu_relax();

#ifdef CONFIG_PPC64
fixup_irqs(cpu_online_mask);
/* counter the irq disable in fixup_irqs */
local_irq_enable();
#endif
return 0;
}

void generic_cpu_die(unsigned int cpu)
{
int i;
Expand Down

0 comments on commit aa58976

Please sign in to comment.