patch-2.4.21 linux-2.4.21/arch/ppc/platforms/chrp_smp.c
Next file: linux-2.4.21/arch/ppc/platforms/chrp_time.c
Previous file: linux-2.4.21/arch/ppc/platforms/chrp_setup.c
Back to the patch index
Back to the overall index
- Lines: 61
- Date:
2003-06-13 07:51:31.000000000 -0700
- Orig file:
linux-2.4.20/arch/ppc/platforms/chrp_smp.c
- Orig date:
2002-11-28 15:53:11.000000000 -0800
diff -urN linux-2.4.20/arch/ppc/platforms/chrp_smp.c linux-2.4.21/arch/ppc/platforms/chrp_smp.c
@@ -1,7 +1,4 @@
/*
- * BK Id: %F% %I% %G% %U% %#%
- */
-/*
* Smp support for CHRP machines.
*
* Written by Cort Dougan (cort@cs.nmt.edu) borrowing a great
@@ -125,37 +122,9 @@
if (OpenPIC_Addr)
do_openpic_setup_cpu();
-}
-
-#ifdef CONFIG_POWER4
-static void __chrp
-smp_xics_message_pass(int target, int msg, unsigned long data, int wait)
-{
- /* for now, only do reschedule messages
- since we only have one IPI */
- if (msg != PPC_MSG_RESCHEDULE)
- return;
- for (i = 0; i < smp_num_cpus; ++i) {
- if (target == MSG_ALL || target == i
- || (target == MSG_ALL_BUT_SELF
- && i != smp_processor_id()))
- xics_cause_IPI(i);
- }
-}
-static int __chrp
-smp_xics_probe(void)
-{
- return smp_chrp_cpu_nr;
-}
-
-static void __chrp
-smp_xics_setup_cpu(int cpu_nr)
-{
- if (cpu_nr > 0)
- xics_setup_cpu();
+ spread_heartbeat();
}
-#endif /* CONFIG_POWER4 */
/* CHRP with openpic */
struct smp_ops_t chrp_smp_ops __chrpdata = {
@@ -164,13 +133,3 @@
smp_chrp_kick_cpu,
smp_chrp_setup_cpu,
};
-
-#ifdef CONFIG_POWER4
-/* CHRP with new XICS interrupt controller */
-struct smp_ops_t xics_smp_ops __chrpdata = {
- smp_xics_message_pass,
- smp_xics_probe,
- smp_chrp_kick_cpu,
- smp_xics_setup_cpu,
-};
-#endif /* CONFIG_POWER4 */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)