kernel: remove kernel/internal/smp.h

There is no need for kernel/internal/smp.h as SOF does not call
z_sched_ipi(). Actually... git log over there has no mention of
z_sched_ipi() anywhere, just arch_sched_ipi().

And include <ksched.h> for source using z_sched_ipi() since
they are using scheduling functions, and would be the correct
file to include.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2025-04-24 12:05:16 -07:00 committed by Benjamin Cabé
parent 3385861753
commit 92ebb2eb69
6 changed files with 4 additions and 13 deletions

View File

@ -5,6 +5,7 @@
#include <zephyr/kernel/thread_stack.h>
#include <zephyr/kernel.h>
#include <ksched.h>
#include <zephyr/arch/arm/cortex_a_r/lib_helpers.h>
#include <zephyr/drivers/interrupt_controller/gic.h>
#include <ipi.h>

View File

@ -8,6 +8,7 @@
#include <kernel_arch_data.h>
#include <x86_mmu.h>
#include <zephyr/init.h>
#include <ksched.h>
#define NR_IRQ_VECTORS (IV_NR_VECTORS - IV_IRQS) /* # vectors free for IRQs */

View File

@ -1,11 +0,0 @@
/*
* 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_
void z_sched_ipi(void);
#endif /* ZEPHYR_INCLUDE_KERNEL_INTERNAL_SMP_H_ */

View File

@ -43,7 +43,5 @@
#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_ */

View File

@ -12,6 +12,7 @@
#include <zephyr/arch/xtensa/arch.h>
#include <zephyr/pm/pm.h>
#include <zephyr/pm/device_runtime.h>
#include <ksched.h>
#include <soc.h>
#include <adsp_boot.h>

View File

@ -2,6 +2,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/kernel.h>
#include <ksched.h>
#include <cavs-idc.h>
#include <adsp_memory.h>
#include <adsp_shim.h>