Browse Source

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>
pull/62553/head
Anas Nashif 2 years ago
parent
commit
fcf50ed6e7
  1. 2
      kernel/include/ksched.h
  2. 0
      kernel/include/timeout_q.h
  3. 2
      kernel/include/wait_q.h
  4. 2
      kernel/timeout.c
  5. 4
      samples/kernel/metairq_dispatch/CMakeLists.txt
  6. 2
      samples/kernel/metairq_dispatch/src/msgdev.c
  7. 1
      soc/x86/intel_ish/intel_ish5/pm/power.c
  8. 1
      subsys/pm/pm.c

2
kernel/include/ksched.h

@ -9,7 +9,7 @@ @@ -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>

0
include/zephyr/timeout_q.h → kernel/include/timeout_q.h

2
kernel/include/wait_q.h

@ -13,7 +13,7 @@ @@ -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" {

2
kernel/timeout.c

@ -7,7 +7,7 @@ @@ -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>

4
samples/kernel/metairq_dispatch/CMakeLists.txt

@ -6,3 +6,7 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) @@ -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
)

2
samples/kernel/metairq_dispatch/src/msgdev.c

@ -3,7 +3,7 @@ @@ -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

1
soc/x86/intel_ish/intel_ish5/pm/power.c

@ -8,7 +8,6 @@ @@ -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>

1
subsys/pm/pm.c

@ -7,7 +7,6 @@ @@ -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>

Loading…
Cancel
Save