Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48263
b: refs/heads/master
c: 775aeff
h: refs/heads/master
i:
  48261: e7c6b90
  48259: 1eb675f
  48255: 1eecad7
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Feb 14, 2007
1 parent 3205c73 commit 2b9a6c5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions 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: dce623e0827e8d0ad60ce7f385c3394bf1b0bae0
refs/heads/master: 775aeff44774c6933d8f9c14e1f325d8acd03136
23 changes: 0 additions & 23 deletions trunk/arch/powerpc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,29 +78,6 @@ int smt_enabled_at_boot = 1;

static void (*crash_ipi_function_ptr)(struct pt_regs *) = NULL;

#ifdef CONFIG_MPIC
int __init smp_mpic_probe(void)
{
int nr_cpus;

DBG("smp_mpic_probe()...\n");

nr_cpus = cpus_weight(cpu_possible_map);

DBG("nr_cpus: %d\n", nr_cpus);

if (nr_cpus > 1)
mpic_request_ipis();

return nr_cpus;
}

void __devinit smp_mpic_setup_cpu(int cpu)
{
mpic_setup_this_cpu();
}
#endif /* CONFIG_MPIC */

#ifdef CONFIG_PPC64
void __devinit smp_generic_kick_cpu(int nr)
{
Expand Down
21 changes: 21 additions & 0 deletions trunk/arch/powerpc/sysdev/mpic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1395,4 +1395,25 @@ void smp_mpic_message_pass(int target, int msg)
break;
}
}

int __init smp_mpic_probe(void)
{
int nr_cpus;

DBG("smp_mpic_probe()...\n");

nr_cpus = cpus_weight(cpu_possible_map);

DBG("nr_cpus: %d\n", nr_cpus);

if (nr_cpus > 1)
mpic_request_ipis();

return nr_cpus;
}

void __devinit smp_mpic_setup_cpu(int cpu)
{
mpic_setup_this_cpu();
}
#endif /* CONFIG_SMP */

0 comments on commit 2b9a6c5

Please sign in to comment.