Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274232
b: refs/heads/master
c: 4511680
h: refs/heads/master
v: v3
  • Loading branch information
Kumar Gala committed Oct 13, 2011
1 parent 4dfd044 commit ee365e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 4559424a0c34f0cb22fa31bc24015a06dc064b32
refs/heads/master: 45116806139743cf35baa01a584e5972e5d833f6
9 changes: 5 additions & 4 deletions trunk/arch/powerpc/platforms/85xx/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ smp_85xx_kick_cpu(int nr)
const u64 *cpu_rel_addr;
__iomem u32 *bptr_vaddr;
struct device_node *np;
int n = 0;
int n = 0, hw_cpu = get_hard_smp_processor_id(nr);
int ioremappable;

WARN_ON (nr < 0 || nr >= NR_CPUS);
WARN_ON(nr < 0 || nr >= NR_CPUS);
WARN_ON(hw_cpu < 0 || hw_cpu >= NR_CPUS);

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

Expand Down Expand Up @@ -79,7 +80,7 @@ smp_85xx_kick_cpu(int nr)

local_irq_save(flags);

out_be32(bptr_vaddr + BOOT_ENTRY_PIR, nr);
out_be32(bptr_vaddr + BOOT_ENTRY_PIR, hw_cpu);
#ifdef CONFIG_PPC32
out_be32(bptr_vaddr + BOOT_ENTRY_ADDR_LOWER, __pa(__early_start));

Expand All @@ -88,7 +89,7 @@ smp_85xx_kick_cpu(int nr)
(ulong)(bptr_vaddr + SIZE_BOOT_ENTRY));

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

0 comments on commit ee365e5

Please sign in to comment.