Skip to content

Commit a77e756

Browse files
stephanosiocfriedt
authored andcommitted
kernel: Remove unused timeout_q from z_kernel
This commit removes the `timeout_q` from the `struct z_kernel` since it is no longer used. Note that the new kernel timeout implementation introduced in the commit 987c0e5 uses `timeout_list` global variable in place of it. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 60fdec6 commit a77e756

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

include/kernel_structs.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,6 @@ typedef struct _cpu _cpu_t;
135135
struct z_kernel {
136136
struct _cpu cpus[CONFIG_MP_NUM_CPUS];
137137

138-
#ifdef CONFIG_SYS_CLOCK_EXISTS
139-
/* queue of timeouts */
140-
sys_dlist_t timeout_q;
141-
#endif
142-
143138
#ifdef CONFIG_PM
144139
int32_t idle; /* Number of ticks for kernel idling */
145140
#endif
@@ -189,8 +184,6 @@ bool z_smp_cpu_mobile(void);
189184
#define _current _kernel.cpus[0].current
190185
#endif
191186

192-
#define _timeout_q _kernel.timeout_q
193-
194187
/* kernel wait queue record */
195188

196189
#ifdef CONFIG_WAITQ_SCALABLE

kernel/init.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,6 @@ K_KERNEL_PINNED_STACK_ARRAY_DEFINE(z_interrupt_stacks,
6565
CONFIG_MP_NUM_CPUS,
6666
CONFIG_ISR_STACK_SIZE);
6767

68-
#ifdef CONFIG_SYS_CLOCK_EXISTS
69-
#define initialize_timeouts() do { \
70-
sys_dlist_init(&_timeout_q); \
71-
} while (false)
72-
#else
73-
#define initialize_timeouts() do { } while ((0))
74-
#endif
75-
7668
extern void idle(void *unused1, void *unused2, void *unused3);
7769

7870

@@ -312,8 +304,6 @@ static char *prepare_multithreading(void)
312304
K_KERNEL_STACK_SIZEOF(z_interrupt_stacks[i]));
313305
}
314306

315-
initialize_timeouts();
316-
317307
return stack_ptr;
318308
}
319309

0 commit comments

Comments
 (0)