aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/platforms
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-10-19 07:44:51 -0400
committerPaul Mackerras <paulus@samba.org>2005-10-19 07:44:51 -0400
commit7ed476d17f04473f70d796cb6c172bdcfcc9b8e5 (patch)
treebafacf9813cdbb27a9e4a125340c98415cdcb903 /arch/ppc/platforms
parent46aab8c584ea69cdbe1060f5eae5bf092763f710 (diff)
ppc: Minor smp changes for consistency with ppc64
This makes platform code use the smp_ops variable directly instead of ppc_md.smp_ops, removes the two unused `data' and `wait' arguments from the *_message_pass() functions, and removes the call to the never-implemented smp_ops->space_timers() function. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/platforms')
-rw-r--r--arch/ppc/platforms/chrp_setup.c2
-rw-r--r--arch/ppc/platforms/gemini_setup.c2
-rw-r--r--arch/ppc/platforms/hdpu.c4
-rw-r--r--arch/ppc/platforms/pmac_setup.c4
-rw-r--r--arch/ppc/platforms/pmac_smp.c3
-rw-r--r--arch/ppc/platforms/pplus.c2
-rw-r--r--arch/ppc/platforms/prep_setup.c2
7 files changed, 9 insertions, 10 deletions
diff --git a/arch/ppc/platforms/chrp_setup.c b/arch/ppc/platforms/chrp_setup.c
index 8c874e957a4..56c53bb3dfd 100644
--- a/arch/ppc/platforms/chrp_setup.c
+++ b/arch/ppc/platforms/chrp_setup.c
@@ -553,7 +553,7 @@ chrp_init(unsigned long r3, unsigned long r4, unsigned long r5,
553#endif 553#endif
554 554
555#ifdef CONFIG_SMP 555#ifdef CONFIG_SMP
556 ppc_md.smp_ops = &chrp_smp_ops; 556 smp_ops = &chrp_smp_ops;
557#endif /* CONFIG_SMP */ 557#endif /* CONFIG_SMP */
558 558
559 /* 559 /*
diff --git a/arch/ppc/platforms/gemini_setup.c b/arch/ppc/platforms/gemini_setup.c
index ec6aa04d001..729897c5903 100644
--- a/arch/ppc/platforms/gemini_setup.c
+++ b/arch/ppc/platforms/gemini_setup.c
@@ -575,6 +575,6 @@ void __init platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
575 ppc_md.pcibios_fixup_bus = gemini_pcibios_fixup; 575 ppc_md.pcibios_fixup_bus = gemini_pcibios_fixup;
576 576
577#ifdef CONFIG_SMP 577#ifdef CONFIG_SMP
578 ppc_md.smp_ops = &gemini_smp_ops; 578 smp_ops = &gemini_smp_ops;
579#endif /* CONFIG_SMP */ 579#endif /* CONFIG_SMP */
580} 580}
diff --git a/arch/ppc/platforms/hdpu.c b/arch/ppc/platforms/hdpu.c
index ff379686012..2cc12b04584 100644
--- a/arch/ppc/platforms/hdpu.c
+++ b/arch/ppc/platforms/hdpu.c
@@ -753,7 +753,7 @@ static int smp_hdpu_probe(void)
753} 753}
754 754
755static void 755static void
756smp_hdpu_message_pass(int target, int msg, unsigned long data, int wait) 756smp_hdpu_message_pass(int target, int msg)
757{ 757{
758 if (msg > 0x3) { 758 if (msg > 0x3) {
759 printk("SMP %d: smp_message_pass: unknown msg %d\n", 759 printk("SMP %d: smp_message_pass: unknown msg %d\n",
@@ -949,7 +949,7 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
949#endif /* CONFIG_SERIAL_TEXT_DEBUG */ 949#endif /* CONFIG_SERIAL_TEXT_DEBUG */
950 950
951#ifdef CONFIG_SMP 951#ifdef CONFIG_SMP
952 ppc_md.smp_ops = &hdpu_smp_ops; 952 smp_ops = &hdpu_smp_ops;
953#endif /* CONFIG_SMP */ 953#endif /* CONFIG_SMP */
954 954
955#if defined(CONFIG_SERIAL_MPSC) || defined(CONFIG_MV643XX_ETH) 955#if defined(CONFIG_SERIAL_MPSC) || defined(CONFIG_MV643XX_ETH)
diff --git a/arch/ppc/platforms/pmac_setup.c b/arch/ppc/platforms/pmac_setup.c
index 74165684552..55d2beffe56 100644
--- a/arch/ppc/platforms/pmac_setup.c
+++ b/arch/ppc/platforms/pmac_setup.c
@@ -330,9 +330,9 @@ pmac_setup_arch(void)
330#ifdef CONFIG_SMP 330#ifdef CONFIG_SMP
331 /* Check for Core99 */ 331 /* Check for Core99 */
332 if (find_devices("uni-n") || find_devices("u3")) 332 if (find_devices("uni-n") || find_devices("u3"))
333 ppc_md.smp_ops = &core99_smp_ops; 333 smp_ops = &core99_smp_ops;
334 else 334 else
335 ppc_md.smp_ops = &psurge_smp_ops; 335 smp_ops = &psurge_smp_ops;
336#endif /* CONFIG_SMP */ 336#endif /* CONFIG_SMP */
337 337
338 pci_create_OF_bus_map(); 338 pci_create_OF_bus_map();
diff --git a/arch/ppc/platforms/pmac_smp.c b/arch/ppc/platforms/pmac_smp.c
index e613f0e0d9e..26ff26238f0 100644
--- a/arch/ppc/platforms/pmac_smp.c
+++ b/arch/ppc/platforms/pmac_smp.c
@@ -209,8 +209,7 @@ irqreturn_t psurge_primary_intr(int irq, void *d, struct pt_regs *regs)
209 return IRQ_HANDLED; 209 return IRQ_HANDLED;
210} 210}
211 211
212static void smp_psurge_message_pass(int target, int msg, unsigned long data, 212static void smp_psurge_message_pass(int target, int msg)
213 int wait)
214{ 213{
215 int i; 214 int i;
216 215
diff --git a/arch/ppc/platforms/pplus.c b/arch/ppc/platforms/pplus.c
index c8803214405..59eb330b209 100644
--- a/arch/ppc/platforms/pplus.c
+++ b/arch/ppc/platforms/pplus.c
@@ -903,6 +903,6 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
903 ppc_md.kgdb_map_scc = gen550_kgdb_map_scc; 903 ppc_md.kgdb_map_scc = gen550_kgdb_map_scc;
904#endif 904#endif
905#ifdef CONFIG_SMP 905#ifdef CONFIG_SMP
906 ppc_md.smp_ops = &pplus_smp_ops; 906 smp_ops = &pplus_smp_ops;
907#endif /* CONFIG_SMP */ 907#endif /* CONFIG_SMP */
908} 908}
diff --git a/arch/ppc/platforms/prep_setup.c b/arch/ppc/platforms/prep_setup.c
index 490ff175c90..9e5637e5f5a 100644
--- a/arch/ppc/platforms/prep_setup.c
+++ b/arch/ppc/platforms/prep_setup.c
@@ -1160,6 +1160,6 @@ prep_init(unsigned long r3, unsigned long r4, unsigned long r5,
1160#endif 1160#endif
1161 1161
1162#ifdef CONFIG_SMP 1162#ifdef CONFIG_SMP
1163 ppc_md.smp_ops = &prep_smp_ops; 1163 smp_ops = &prep_smp_ops;
1164#endif /* CONFIG_SMP */ 1164#endif /* CONFIG_SMP */
1165} 1165}