hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/arch/mips/include/asm/smp.h
....@@ -91,6 +91,22 @@
9191 extern void play_dead(void);
9292 #endif
9393
94
+#ifdef CONFIG_KEXEC
95
+static inline void kexec_nonboot_cpu(void)
96
+{
97
+ extern const struct plat_smp_ops *mp_ops; /* private */
98
+
99
+ return mp_ops->kexec_nonboot_cpu();
100
+}
101
+
102
+static inline void *kexec_nonboot_cpu_func(void)
103
+{
104
+ extern const struct plat_smp_ops *mp_ops; /* private */
105
+
106
+ return mp_ops->kexec_nonboot_cpu;
107
+}
108
+#endif
109
+
94110 /*
95111 * This function will set up the necessary IPIs for Linux to communicate
96112 * with the CPUs in mask.
....@@ -109,7 +125,7 @@
109125 {
110126 extern const struct plat_smp_ops *mp_ops; /* private */
111127
112
- mp_ops->send_ipi_mask(cpumask_of(cpu), SMP_CALL_FUNCTION);
128
+ mp_ops->send_ipi_single(cpu, SMP_CALL_FUNCTION);
113129 }
114130
115131 static inline void arch_send_call_function_ipi_mask(const struct cpumask *mask)