Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions posix/include/rtos/task.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,6 @@ static inline uint64_t task_get_deadline(struct task *task)
return task->ops.get_deadline(task->data);
}

/**
* @brief Primary core main processing loop callback in POSIX simulation.
* @param[in,out] data Context pointer passed to task handler.
* @return Resulting task state.
*/
enum task_state task_main_primary_core(void *data);

/**
* @brief Secondary core main processing loop callback in POSIX simulation.
* @param[in,out] data Context pointer passed to task handler.
Expand Down
1 change: 0 additions & 1 deletion scripts/kernel_user_partition.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ zephyr/include/rtos/userspace_helper.h
zephyr/include/sof/lib/dma-legacy.h
zephyr/include/sof/lib/io.h
zephyr/include/sof/lib/memory.h
zephyr/include/sof/lib/mm_heap.h
zephyr/include/sof/lib/pm_runtime.h

# Zephyr headers that only kernel code may include: kernel internals and
Expand Down
11 changes: 3 additions & 8 deletions src/include/sof/schedule/schedule.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ enum {
SOF_SCHEDULE_COUNT
};

/** @brief Scheduler free available flags. */
#define SOF_SCHEDULER_FREE_IRQ_ONLY BIT(0) /**< Free function disables interrupts only, keeping data structures intact. */

/**
* @brief Scheduler operations interface table.
*
Expand Down Expand Up @@ -171,11 +168,10 @@ struct scheduler_ops {
/**
* @brief Free the scheduler instance and release its underlying resources.
* @param[in,out] data Private state of the selected scheduler.
* @param[in] flags Scheduler-specific free flags (e.g. @ref SOF_SCHEDULER_FREE_IRQ_ONLY).
*
* This operation is optional (used only in standalone testing and library testbench).
*/
void (*scheduler_free)(void *data, uint32_t flags);
void (*scheduler_free)(void *data);
#endif

/**
Expand Down Expand Up @@ -459,9 +455,8 @@ static inline int schedule_task_free(struct task *task)
#if CONFIG_SOF_BOOT_TEST_STANDALONE || CONFIG_LIBRARY
/**
* @brief Free all registered schedulers and their resources (testing/library only).
* @param[in] flags Scheduler-specific free flags (e.g. @ref SOF_SCHEDULER_FREE_IRQ_ONLY).
*/
static inline void schedule_free(uint32_t flags)
static inline void schedule_free(void)
{
struct schedulers *schedulers = *arch_schedulers_get();
struct schedule_data *sch;
Expand All @@ -470,7 +465,7 @@ static inline void schedule_free(uint32_t flags)
list_for_item(slist, &schedulers->list) {
sch = container_of(slist, struct schedule_data, list);
if (sch->ops->scheduler_free)
sch->ops->scheduler_free(sch->data, flags);
sch->ops->scheduler_free(sch->data);
}
}
#endif
Expand Down
1 change: 0 additions & 1 deletion src/kernel/init/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <sof/lib/cpu.h>
#include <sof/lib/cpu-clk-manager.h>
#include <sof/lib/memory.h>
#include <sof/lib/mm_heap.h>
#include <sof/lib/notifier.h>
#include <sof/lib/pm_runtime.h>
#include <rtos/wait.h>
Expand Down
1 change: 0 additions & 1 deletion src/kernel/ipc/ipc3/handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <rtos/alloc.h>
#include <rtos/cache.h>
#include <sof/lib/mailbox.h>
#include <sof/lib/mm_heap.h>
#include <sof/lib/pm_runtime.h>
#include <sof/list.h>
#include <sof/kernel/platform.h>
Expand Down
1 change: 0 additions & 1 deletion src/kernel/platform/amd/acp_7_0/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <sof/lib/dma.h>
#include <sof/lib/mailbox.h>
#include <sof/lib/memory.h>
#include <sof/lib/mm_heap.h>
#include <sof/kernel/platform.h>
#include <sof/schedule/edf_schedule.h>
#include <sof/schedule/ll_schedule.h>
Expand Down
1 change: 0 additions & 1 deletion src/kernel/platform/amd/acp_7_x/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <sof/lib/dma.h>
#include <sof/lib/mailbox.h>
#include <sof/lib/memory.h>
#include <sof/lib/mm_heap.h>
#include <sof/kernel/platform.h>
#include <sof/schedule/edf_schedule.h>
#include <sof/schedule/ll_schedule.h>
Expand Down
1 change: 0 additions & 1 deletion src/kernel/platform/amd/rembrandt/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <sof/lib/dma.h>
#include <sof/lib/mailbox.h>
#include <sof/lib/memory.h>
#include <sof/lib/mm_heap.h>
#include <sof/kernel/platform.h>
#include <sof/schedule/edf_schedule.h>
#include <sof/schedule/ll_schedule.h>
Expand Down
1 change: 0 additions & 1 deletion src/kernel/platform/imx8m/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <sof/lib/dma.h>
#include <sof/lib/mailbox.h>
#include <sof/lib/memory.h>
#include <sof/lib/mm_heap.h>
#include <sof/kernel/platform.h>
#include <sof/schedule/edf_schedule.h>
#include <sof/schedule/ll_schedule.h>
Expand Down
1 change: 0 additions & 1 deletion src/kernel/platform/imx8ulp/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <sof/lib/dma.h>
#include <sof/lib/mailbox.h>
#include <sof/lib/memory.h>
#include <sof/lib/mm_heap.h>
#include <sof/kernel/platform.h>
#include <sof/schedule/edf_schedule.h>
#include <sof/schedule/ll_schedule.h>
Expand Down
1 change: 0 additions & 1 deletion src/kernel/platform/intel/ace/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <sof/ipc/msg.h>
#include <sof/lib/agent.h>
#include <sof/lib/cpu-clk-manager.h>
#include <sof/lib/mm_heap.h>
#include <sof/lib/watchdog.h>
#include <sof/lib/cpu-clk-manager.h>
#include <sof/schedule/edf_schedule.h>
Expand Down
1 change: 0 additions & 1 deletion src/kernel/platform/intel/cavs/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <sof/lib/io.h>
#include <sof/lib/mailbox.h>
#include <sof/lib/memory.h>
#include <sof/lib/mm_heap.h>
#include <sof/lib/notifier.h>
#include <rtos/wait.h>
#include <sof/kernel/platform.h>
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/platform/library/schedule/edf_schedule.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static int schedule_edf_task(void *data, struct task *task, uint64_t start,
}

#if CONFIG_SOF_BOOT_TEST_STANDALONE || CONFIG_LIBRARY
static void edf_scheduler_free(void *data, uint32_t flags)
static void edf_scheduler_free(void *data)
{
free(data);
}
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/platform/library/schedule/ll_schedule.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static int schedule_ll_task(void *data, struct task *task, uint64_t start,
}

#if CONFIG_SOF_BOOT_TEST_STANDALONE || CONFIG_LIBRARY
static void ll_scheduler_free(void *data, uint32_t flags)
static void ll_scheduler_free(void *data)
{
free(data);
}
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/schedule/zephyr_ll-kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ void user_ll_grant_access(struct k_thread *thread, int core)
#endif /* CONFIG_SOF_USERSPACE_LL */

#if CONFIG_SOF_BOOT_TEST_STANDALONE || CONFIG_LIBRARY
static void zephyr_ll_scheduler_free(void *data, uint32_t flags)
static void zephyr_ll_scheduler_free(void *data)
{
struct zephyr_ll *sch = data;

Expand Down
2 changes: 1 addition & 1 deletion tools/testbench/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void tb_free(struct sof *sof)
free(*notify);

/* free all scheduler data */
schedule_free(0);
schedule_free();
schedulers = arch_schedulers_get();
list_for_item_safe(slist, _slist, &(*schedulers)->list) {
sch = container_of(slist, struct schedule_data, list);
Expand Down
20 changes: 0 additions & 20 deletions zephyr/include/sof/lib/mm_heap.h

This file was deleted.

Loading