kernel: move timeout_q.h to kernel/include

This is a private kernel header with private kernel APIs, it should not
be exposed in the public zephyr include directory.

Once sample remains to be fixed (metairq_dispatch), which currently uses
private APIs from that header, it should not be the case.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2023-08-29 19:32:46 +00:00
parent 8634c3b444
commit fcf50ed6e7
8 changed files with 8 additions and 6 deletions

View File

@ -9,7 +9,7 @@
#include <zephyr/kernel_structs.h>
#include <kernel_internal.h>
#include <zephyr/timeout_q.h>
#include <timeout_q.h>
#include <zephyr/tracing/tracing.h>
#include <stdbool.h>

View File

@ -13,7 +13,7 @@
#include <zephyr/sys/dlist.h>
#include <zephyr/sys/rb.h>
#include <zephyr/kernel/sched_priq.h>
#include <zephyr/timeout_q.h>
#include <timeout_q.h>
#ifdef __cplusplus
extern "C" {

View File

@ -7,7 +7,7 @@
#include <zephyr/kernel.h>
#include <zephyr/spinlock.h>
#include <ksched.h>
#include <zephyr/timeout_q.h>
#include <timeout_q.h>
#include <zephyr/syscall_handler.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>

View File

@ -6,3 +6,7 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(metairq_dispatch)
target_sources(app PRIVATE src/main.c src/msgdev.c)
target_include_directories(app PRIVATE
${ZEPHYR_BASE}/kernel/include
)

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/timeout_q.h>
#include <timeout_q.h>
#include "msgdev.h"
/* This file implements a fake device that creates and enqueues

View File

@ -8,7 +8,6 @@
#include <zephyr/pm/pm.h>
#include <zephyr/pm/policy.h>
#include <zephyr/device.h>
#include <zephyr/timeout_q.h>
#include <zephyr/init.h>
#include <zephyr/irq.h>
#include <zephyr/logging/log_core.h>

View File

@ -7,7 +7,6 @@
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/kernel_structs.h>
#include <zephyr/timeout_q.h>
#include <zephyr/init.h>
#include <string.h>
#include <zephyr/drivers/timer/system_timer.h>