Skip to content
Merged
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 include/kernel_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,6 @@ typedef struct _cpu _cpu_t;
struct z_kernel {
struct _cpu cpus[CONFIG_MP_NUM_CPUS];

#ifdef CONFIG_SYS_CLOCK_EXISTS
/* queue of timeouts */
sys_dlist_t timeout_q;
#endif

#ifdef CONFIG_PM
int32_t idle; /* Number of ticks for kernel idling */
#endif
Expand Down Expand Up @@ -189,8 +184,6 @@ bool z_smp_cpu_mobile(void);
#define _current _kernel.cpus[0].current
#endif

#define _timeout_q _kernel.timeout_q

/* kernel wait queue record */

#ifdef CONFIG_WAITQ_SCALABLE
Expand Down
10 changes: 0 additions & 10 deletions kernel/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,6 @@ K_KERNEL_PINNED_STACK_ARRAY_DEFINE(z_interrupt_stacks,
CONFIG_MP_NUM_CPUS,
CONFIG_ISR_STACK_SIZE);

#ifdef CONFIG_SYS_CLOCK_EXISTS
#define initialize_timeouts() do { \
sys_dlist_init(&_timeout_q); \
} while (false)
#else
#define initialize_timeouts() do { } while ((0))
#endif

extern void idle(void *unused1, void *unused2, void *unused3);


Expand Down Expand Up @@ -314,8 +306,6 @@ static char *prepare_multithreading(void)
K_KERNEL_STACK_SIZEOF(z_interrupt_stacks[i]));
}

initialize_timeouts();

return stack_ptr;
}

Expand Down