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:
parent
e19f21cb27
commit
209ff606be
3 changed files with 21 additions and 8 deletions
|
@ -5947,14 +5947,6 @@ extern void z_init_static_threads(void);
|
|||
#define z_init_static_threads() do { } while (false)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
#ifdef CONFIG_SMP
|
||||
void z_smp_thread_init(void *arg, struct k_thread *thread);
|
||||
void z_smp_thread_swap(void);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
|
|
19
include/zephyr/kernel/internal/smp.h
Normal file
19
include/zephyr/kernel/internal/smp.h
Normal 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
|
|
@ -45,5 +45,7 @@
|
|||
#include <zephyr/app_memory/mem_domain.h>
|
||||
#include <zephyr/sys/kobject.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_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue