Skip to content

Commit

Permalink
kernel: include cleanup
Browse files Browse the repository at this point in the history
Recent changes have eliminated most use of _Swap() in favor of higher
level scheduler abstractions.  We can remove the header too.

Signed-off-by: Andy Ross <[email protected]>
  • Loading branch information
Andy Ross authored and Anas Nashif committed Apr 23, 2018
1 parent e0a572b commit 0447a73
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion kernel/mailbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <wait_q.h>
#include <misc/dlist.h>
#include <init.h>
#include <kswap.h>

#if (CONFIG_NUM_MBOX_ASYNC_MSGS > 0)

Expand Down
1 change: 0 additions & 1 deletion kernel/mem_slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <misc/dlist.h>
#include <ksched.h>
#include <init.h>
#include <kswap.h>

extern struct k_mem_slab _k_mem_slab_list_start[];
extern struct k_mem_slab _k_mem_slab_list_end[];
Expand Down
1 change: 0 additions & 1 deletion kernel/mempool.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <init.h>
#include <string.h>
#include <misc/__assert.h>
#include <kswap.h>

/* Linker-defined symbols bound the static pool structs */
extern struct k_mem_pool _k_mem_pool_list_start[];
Expand Down
1 change: 0 additions & 1 deletion kernel/msg_q.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <misc/dlist.h>
#include <init.h>
#include <syscall_handler.h>
#include <kswap.h>

extern struct k_msgq _k_msgq_list_start[];
extern struct k_msgq _k_msgq_list_end[];
Expand Down
1 change: 0 additions & 1 deletion kernel/mutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include <errno.h>
#include <init.h>
#include <syscall_handler.h>
#include <kswap.h>

#define RECORD_STATE_CHANGE(mutex) do { } while ((0))
#define RECORD_CONFLICT(mutex) do { } while ((0))
Expand Down
1 change: 0 additions & 1 deletion kernel/pipes.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <misc/dlist.h>
#include <init.h>
#include <syscall_handler.h>
#include <kswap.h>

struct k_pipe_desc {
unsigned char *buffer; /* Position in src/dest buffer */
Expand Down
1 change: 0 additions & 1 deletion kernel/poll.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <kernel_internal.h>
#include <wait_q.h>
#include <ksched.h>
#include <kswap.h>
#include <misc/slist.h>
#include <misc/dlist.h>
#include <misc/__assert.h>
Expand Down
1 change: 0 additions & 1 deletion kernel/queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <ksched.h>
#include <misc/slist.h>
#include <init.h>
#include <kswap.h>

extern struct k_queue _k_queue_list_start[];
extern struct k_queue _k_queue_list_end[];
Expand Down
1 change: 0 additions & 1 deletion kernel/sem.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <ksched.h>
#include <init.h>
#include <syscall_handler.h>
#include <kswap.h>

extern struct k_sem _k_sem_list_start[];
extern struct k_sem _k_sem_list_end[];
Expand Down
1 change: 0 additions & 1 deletion kernel/stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <misc/__assert.h>
#include <init.h>
#include <syscall_handler.h>
#include <kswap.h>

extern struct k_stack _k_stack_list_start[];
extern struct k_stack _k_stack_list_end[];
Expand Down
1 change: 0 additions & 1 deletion kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <init.h>
#include <wait_q.h>
#include <syscall_handler.h>
#include <kswap.h>

extern struct k_timer _k_timer_list_start[];
extern struct k_timer _k_timer_list_end[];
Expand Down
1 change: 0 additions & 1 deletion lib/posix/pthread_barrier.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <posix/pthread.h>
#include <ksched.h>
#include <wait_q.h>
#include <kswap.h>

void ready_one_thread(_wait_q_t *wq);

Expand Down
1 change: 0 additions & 1 deletion lib/posix/pthread_cond.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <kernel.h>
#include <ksched.h>
#include <wait_q.h>
#include <kswap.h>
#include <posix/pthread.h>

void ready_one_thread(_wait_q_t *wq);
Expand Down

0 comments on commit 0447a73

Please sign in to comment.