aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/smp.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-10-20 03:09:51 -0400
committerPaul Mackerras <paulus@samba.org>2005-10-20 03:09:51 -0400
commita9c59264690aea9d0df2d2d76683bc39ec6b7288 (patch)
tree5cf1bc1181caacf93abe91585ab6e989542527e1 /arch/ppc64/kernel/smp.c
parentd8699e65c6bc0a81b5e679ca5b135bfe3c3fb483 (diff)
powerpc: Move smp_mpic_message_pass into mpic.c
Having it here rather than in arch/ppc64/kernel/smp.c means that we can use it on 32-bit SMP systems easily with ARCH=powerpc. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel/smp.c')
-rw-r--r--arch/ppc64/kernel/smp.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/arch/ppc64/kernel/smp.c b/arch/ppc64/kernel/smp.c
index 6f4f3da12a63..192e3239fadc 100644
--- a/arch/ppc64/kernel/smp.c
+++ b/arch/ppc64/kernel/smp.c
@@ -69,28 +69,6 @@ void smp_call_function_interrupt(void);
69int smt_enabled_at_boot = 1; 69int smt_enabled_at_boot = 1;
70 70
71#ifdef CONFIG_MPIC 71#ifdef CONFIG_MPIC
72void smp_mpic_message_pass(int target, int msg)
73{
74 /* make sure we're sending something that translates to an IPI */
75 if ( msg > 0x3 ){
76 printk("SMP %d: smp_message_pass: unknown msg %d\n",
77 smp_processor_id(), msg);
78 return;
79 }
80 switch ( target )
81 {
82 case MSG_ALL:
83 mpic_send_ipi(msg, 0xffffffff);
84 break;
85 case MSG_ALL_BUT_SELF:
86 mpic_send_ipi(msg, 0xffffffff & ~(1 << smp_processor_id()));
87 break;
88 default:
89 mpic_send_ipi(msg, 1 << target);
90 break;
91 }
92}
93
94int __init smp_mpic_probe(void) 72int __init smp_mpic_probe(void)
95{ 73{
96 int nr_cpus; 74 int nr_cpus;