kernel: smp: remove z_smp_thread_init/_swap

This removes z_smp_thread_init() and z_smp_thread_swap() as
SOF has been updated to use k_smp_cpu_custom_start() instead.
This removes the need for SOF to mirror part of the SMP
power up code, and thus these two functions are no longer
needed.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2023-11-03 12:06:42 -07:00 committed by Anas Nashif
commit 35a1814c4d
2 changed files with 0 additions and 23 deletions

View file

@ -6,16 +6,6 @@
#ifndef ZEPHYR_INCLUDE_KERNEL_INTERNAL_SMP_H_
#define ZEPHYR_INCLUDE_KERNEL_INTERNAL_SMP_H_
struct k_thread;
/**
* @internal
*/
#ifdef CONFIG_SOF
void z_smp_thread_init(void *arg, struct k_thread *thread);
void z_smp_thread_swap(void);
#endif
void z_init_cpu(int id);
void z_sched_ipi(void);

View file

@ -106,19 +106,6 @@ static void wait_for_start_signal(atomic_t *start_flag)
}
}
/* Legacy interfaces for early-version SOF CPU bringup. To be removed */
#ifdef CONFIG_SOF
void z_smp_thread_init(void *arg, struct k_thread *thread)
{
z_dummy_thread_init(thread);
wait_for_start_signal(arg);
}
void z_smp_thread_swap(void)
{
z_swap_unlocked();
}
#endif
static inline void smp_init_top(void *arg)
{
struct k_thread dummy_thread;