patch-2.4.25 linux-2.4.25/include/asm-mips/smp.h

Next file: linux-2.4.25/include/asm-mips/smplock.h
Previous file: linux-2.4.25/include/asm-mips/siginfo.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/include/asm-mips/smp.h linux-2.4.25/include/asm-mips/smp.h
@@ -93,5 +93,36 @@
 
 extern cpumask_t cpu_online_map;
 
+/* These are defined by the board-specific code. */
+
+/*
+ * Cause the function described by call_data to be executed on the passed
+ * cpu.  When the function has finished, increment the finished field of
+ * call_data.
+ */
+void core_send_ipi(int cpu, unsigned int action);
+
+/*
+ * Clear all undefined state in the cpu, set up sp and gp to the passed
+ * values, and kick the cpu into smp_bootstrap();
+ */
+void prom_boot_secondary(int cpu, unsigned long sp, unsigned long gp);
+
+/*
+ *  After we've done initial boot, this function is called to allow the
+ *  board code to clean up state, if needed
+ */
+void prom_init_secondary(void);
+
+/*
+ * Do whatever setup needs to be done for SMP at the board level.  Return
+ * the number of cpus in the system, including this one
+ */
+int prom_setup_smp(void);
+
+void prom_smp_finish(void);
+
+extern void asmlinkage smp_bootstrap(void);
+
 #endif /* CONFIG_SMP */
 #endif /* _ASM_SMP_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)