kernel: move internal smp calls to a internal header

Those APIs are internal and should not be part of the main public API
header.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2023-09-18 11:34:06 -04:00 committed by Carles Cufí
commit 209ff606be
3 changed files with 21 additions and 8 deletions

View file

@ -5947,14 +5947,6 @@ extern void z_init_static_threads(void);
#define z_init_static_threads() do { } while (false) #define z_init_static_threads() do { } while (false)
#endif #endif
/**
* @internal
*/
#ifdef CONFIG_SMP
void z_smp_thread_init(void *arg, struct k_thread *thread);
void z_smp_thread_swap(void);
#endif
/** /**
* @internal * @internal
*/ */

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2023 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#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
#endif

View file

@ -45,5 +45,7 @@
#include <zephyr/app_memory/mem_domain.h> #include <zephyr/app_memory/mem_domain.h>
#include <zephyr/sys/kobject.h> #include <zephyr/sys/kobject.h>
#include <zephyr/kernel/thread.h> #include <zephyr/kernel/thread.h>
/* FIXME This needs to be removed. Exposes some private APIs to SOF */
#include <zephyr/kernel/internal/smp.h>
#endif /* ZEPHYR_INCLUDE_KERNEL_INCLUDES_H_ */ #endif /* ZEPHYR_INCLUDE_KERNEL_INCLUDES_H_ */