kernel: move wait_q.h header to be internal
This header does not expose any public APIs, so move it under kernel/include and change files including it. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
1fd3171f7b
commit
8634c3b444
|
@ -8,7 +8,7 @@
|
|||
#include <zephyr/kernel_structs.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <wait_q.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
|
||||
static struct k_spinlock lock;
|
||||
|
|
|
@ -25,13 +25,14 @@
|
|||
#include <zephyr/kernel_structs.h>
|
||||
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <zephyr/sys/dlist.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/tracing/tracing.h>
|
||||
#include <zephyr/sys/check.h>
|
||||
/* private kernel APIs */
|
||||
#include <wait_q.h>
|
||||
#include <ksched.h>
|
||||
|
||||
#define K_EVENT_WAIT_ANY 0x00 /* Wait for any events */
|
||||
#define K_EVENT_WAIT_ALL 0x01 /* Wait for all events */
|
||||
|
|
|
@ -8,12 +8,13 @@
|
|||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/linker/sections.h>
|
||||
#include <zephyr/drivers/timer/system_timer.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <zephyr/pm/pm.h>
|
||||
#include <stdbool.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
/* private kernel APIs */
|
||||
#include <ksched.h>
|
||||
#include <kswap.h>
|
||||
#include <wait_q.h>
|
||||
|
||||
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
||||
|
||||
|
|
|
@ -5,11 +5,12 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/linker/linker-defs.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
/* private kernel APIs */
|
||||
#include <ksched.h>
|
||||
#include <wait_q.h>
|
||||
|
||||
void k_heap_init(struct k_heap *h, void *mem, size_t bytes)
|
||||
{
|
||||
|
|
|
@ -14,10 +14,11 @@
|
|||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/linker/sections.h>
|
||||
#include <string.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <zephyr/sys/dlist.h>
|
||||
#include <zephyr/init.h>
|
||||
/* private kernel APIs */
|
||||
#include <ksched.h>
|
||||
#include <wait_q.h>
|
||||
|
||||
#if (CONFIG_NUM_MBOX_ASYNC_MSGS > 0)
|
||||
|
||||
|
|
|
@ -9,12 +9,13 @@
|
|||
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/linker/sections.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <zephyr/sys/dlist.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/sys/check.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
/* private kernel APIs */
|
||||
#include <ksched.h>
|
||||
#include <wait_q.h>
|
||||
|
||||
/**
|
||||
* @brief Initialize kernel memory slab subsystem.
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <zephyr/linker/sections.h>
|
||||
#include <string.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <wait_q.h>
|
||||
#include <zephyr/sys/dlist.h>
|
||||
#include <zephyr/sys/math_extras.h>
|
||||
#include <zephyr/init.h>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#include <zephyr/kernel_structs.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <wait_q.h>
|
||||
#include <errno.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <wait_q.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <kernel_internal.h>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/kernel_structs.h>
|
||||
#include <kernel_internal.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <wait_q.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/sys/dlist.h>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <zephyr/kernel_structs.h>
|
||||
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <wait_q.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <ksched.h>
|
||||
#include <zephyr/spinlock.h>
|
||||
#include <zephyr/kernel/sched_priq.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <wait_q.h>
|
||||
#include <kswap.h>
|
||||
#include <kernel_arch_func.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include <zephyr/kernel_structs.h>
|
||||
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <wait_q.h>
|
||||
#include <zephyr/sys/dlist.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/init.h>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <wait_q.h>
|
||||
#include <zephyr/sys/check.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <zephyr/sys/math_extras.h>
|
||||
#include <zephyr/sys_clock.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <wait_q.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <kernel_internal.h>
|
||||
#include <kswap.h>
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
#include <zephyr/kernel.h>
|
||||
|
||||
#include <zephyr/init.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <stdbool.h>
|
||||
#include <zephyr/spinlock.h>
|
||||
#include <ksched.h>
|
||||
#include <wait_q.h>
|
||||
|
||||
static struct k_spinlock lock;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/kernel_structs.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <wait_q.h>
|
||||
#include <zephyr/spinlock.h>
|
||||
#include <errno.h>
|
||||
#include <ksched.h>
|
||||
|
|
|
@ -5,11 +5,12 @@
|
|||
*/
|
||||
#include <zephyr/logging/log.h>
|
||||
#include <zephyr/sys/p4wq.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <zephyr/kernel.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
/* private kernel APIs */
|
||||
#include <ksched.h>
|
||||
#include <wait_q.h>
|
||||
|
||||
LOG_MODULE_REGISTER(p4wq, CONFIG_LOG_DEFAULT_LEVEL);
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/sys/printk.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <wait_q.h>
|
||||
#include <ksched.h>
|
||||
|
||||
/* This is a scheduler microbenchmark, designed to measure latencies
|
||||
|
|
|
@ -6,7 +6,9 @@
|
|||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/sys/printk.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
|
||||
/* private kernel APIs */
|
||||
#include <wait_q.h>
|
||||
#include <ksched.h>
|
||||
|
||||
#include "app_threads.h"
|
||||
|
|
|
@ -6,3 +6,7 @@ project(events_api)
|
|||
|
||||
FILE(GLOB app_sources src/*.c)
|
||||
target_sources(app PRIVATE ${app_sources})
|
||||
|
||||
target_include_directories(app PRIVATE
|
||||
${ZEPHYR_BASE}/kernel/include
|
||||
)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/ztest.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <wait_q.h>
|
||||
|
||||
#define DELAY K_MSEC(50)
|
||||
#define SHORT_TIMEOUT K_MSEC(100)
|
||||
|
|
Loading…
Reference in a new issue