diff options
Diffstat (limited to 'arch/powerpc/sysdev/mpic.c')
-rw-r--r-- | arch/powerpc/sysdev/mpic.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c index aa701cc27ecc..4e54a09dd33b 100644 --- a/arch/powerpc/sysdev/mpic.c +++ b/arch/powerpc/sysdev/mpic.c | |||
@@ -1395,4 +1395,25 @@ void smp_mpic_message_pass(int target, int msg) | |||
1395 | break; | 1395 | break; |
1396 | } | 1396 | } |
1397 | } | 1397 | } |
1398 | |||
1399 | int __init smp_mpic_probe(void) | ||
1400 | { | ||
1401 | int nr_cpus; | ||
1402 | |||
1403 | DBG("smp_mpic_probe()...\n"); | ||
1404 | |||
1405 | nr_cpus = cpus_weight(cpu_possible_map); | ||
1406 | |||
1407 | DBG("nr_cpus: %d\n", nr_cpus); | ||
1408 | |||
1409 | if (nr_cpus > 1) | ||
1410 | mpic_request_ipis(); | ||
1411 | |||
1412 | return nr_cpus; | ||
1413 | } | ||
1414 | |||
1415 | void __devinit smp_mpic_setup_cpu(int cpu) | ||
1416 | { | ||
1417 | mpic_setup_this_cpu(); | ||
1418 | } | ||
1398 | #endif /* CONFIG_SMP */ | 1419 | #endif /* CONFIG_SMP */ |