Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259092
b: refs/heads/master
c: dc2c9c5
h: refs/heads/master
v: v3
  • Loading branch information
Scott Wood authored and Kumar Gala committed Jun 23, 2011
1 parent 35773ff commit eff8dbb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 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: 470788d4a070a07e9ab73d2ccc59d44833ab1a0e
refs/heads/master: dc2c9c52b604f51b1416ed87ff54a1c77a1a8b5b
21 changes: 12 additions & 9 deletions trunk/arch/powerpc/platforms/85xx/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,6 @@ smp_85xx_kick_cpu(int nr)
return 0;
}

static void __init
smp_85xx_setup_cpu(int cpu_nr)
{
mpic_setup_this_cpu();
if (cpu_has_feature(CPU_FTR_DBELL))
doorbell_setup_this_cpu();
}

struct smp_ops_t smp_85xx_ops = {
.kick_cpu = smp_85xx_kick_cpu,
#ifdef CONFIG_KEXEC
Expand Down Expand Up @@ -224,14 +216,25 @@ static void mpc85xx_smp_machine_kexec(struct kimage *image)
}
#endif /* CONFIG_KEXEC */

static void __init
smp_85xx_setup_cpu(int cpu_nr)
{
if (smp_85xx_ops.probe == smp_mpic_probe)
mpic_setup_this_cpu();

if (cpu_has_feature(CPU_FTR_DBELL))
doorbell_setup_this_cpu();
}

void __init mpc85xx_smp_init(void)
{
struct device_node *np;

smp_85xx_ops.setup_cpu = smp_85xx_setup_cpu;

np = of_find_node_by_type(NULL, "open-pic");
if (np) {
smp_85xx_ops.probe = smp_mpic_probe;
smp_85xx_ops.setup_cpu = smp_85xx_setup_cpu;
smp_85xx_ops.message_pass = smp_mpic_message_pass;
}

Expand Down

0 comments on commit eff8dbb

Please sign in to comment.