Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154413
b: refs/heads/master
c: cb1ffb6
h: refs/heads/master
i:
  154411: 37f57a5
v: v3
  • Loading branch information
Kumar Gala committed Jun 23, 2009
1 parent 86aedc6 commit 971b141
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: fa874618c3155e4f255387987d630a203578b5ae
refs/heads/master: cb1ffb6204712b04396ae0a9f3d1bf93cd8df8fb
9 changes: 4 additions & 5 deletions trunk/arch/powerpc/platforms/85xx/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,31 +52,30 @@ smp_85xx_kick_cpu(int nr)

pr_debug("smp_85xx_kick_cpu: kick CPU #%d\n", nr);

local_irq_save(flags);

np = of_get_cpu_node(nr, NULL);
cpu_rel_addr = of_get_property(np, "cpu-release-addr", NULL);

if (cpu_rel_addr == NULL) {
printk(KERN_ERR "No cpu-release-addr for cpu %d\n", nr);
local_irq_restore(flags);
return;
}

/* Map the spin table */
bptr_vaddr = ioremap(*cpu_rel_addr, SIZE_BOOT_ENTRY);

local_irq_save(flags);

out_be32(bptr_vaddr + BOOT_ENTRY_PIR, nr);
out_be32(bptr_vaddr + BOOT_ENTRY_ADDR_LOWER, __pa(__early_start));

/* Wait a bit for the CPU to ack. */
while ((__secondary_hold_acknowledge != nr) && (++n < 1000))
mdelay(1);

iounmap(bptr_vaddr);

local_irq_restore(flags);

iounmap(bptr_vaddr);

pr_debug("waited %d msecs for CPU #%d.\n", n, nr);
}

Expand Down

0 comments on commit 971b141

Please sign in to comment.