zephyr/kernel
Keith Packard 41e8b44619 kernel: Make thread 'init_delay' k_timeout_t rather than int msecs
Storing this value in milliseconds rather than using k_timeout_t requires
the system to perform division at runtime to convert types. This pulls in
the 64-bit soft division code on platforms without hardware for this.

Perform the conversion at build time instead by using the runtime time
directly.

The init_delay field was moved within the _static_thread_data structure to
avoid introducing a hole for alignment on 32-bit systems when using 64-bit
timeouts.

Use SYS_TIMEOUT_MS instead of K_MSEC so that the initial delay can be set
to forever.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-09-28 16:15:27 +02:00
..
include kernel: z_handle_obj_poll_events is internal not kernel.h material 2023-09-17 07:59:30 -04:00
paging
atomic_c.c
banner.c
busy_wait.c
CMakeLists.txt
compiler_stack_protect.c
condvar.c kernel: move wait_q.h header to be internal 2023-09-12 12:55:36 -04:00
device.c
dynamic_disabled.c
dynamic.c
errno.c
events.c kernel: move wait_q.h header to be internal 2023-09-12 12:55:36 -04:00
fatal.c
futex.c
idle.c kernel: move wait_q.h header to be internal 2023-09-12 12:55:36 -04:00
init.c
Kconfig kernel: SMP: allow more than 5 CPU cores 2023-09-25 09:49:50 +02:00
Kconfig.vm
kheap.c kernel: move wait_q.h header to be internal 2023-09-12 12:55:36 -04:00
mailbox.c kernel: move wait_q.h header to be internal 2023-09-12 12:55:36 -04:00
main_weak.c
mem_domain.c
mem_slab.c kernel: move wait_q.h header to be internal 2023-09-12 12:55:36 -04:00
mempool.c
mmu.c
msg_q.c kernel: move wait_q.h header to be internal 2023-09-12 12:55:36 -04:00
mutex.c kernel: move wait_q.h header to be internal 2023-09-12 12:55:36 -04:00
pipes.c kernel: move wait_q.h header to be internal 2023-09-12 12:55:36 -04:00
poll.c kernel: poll: Lock all calls to signal_poll_event 2023-09-18 15:41:23 -04:00
queue.c kernel: Fix unused-parameter warnings 2023-09-28 16:14:39 +02:00
sched.c kernel: Fix unused-parameter warnings 2023-09-28 16:14:39 +02:00
sem.c kernel: move wait_q.h header to be internal 2023-09-12 12:55:36 -04:00
smp.c
stack.c kernel: move wait_q.h header to be internal 2023-09-12 12:55:36 -04:00
system_work_q.c
thread.c kernel: Make thread 'init_delay' k_timeout_t rather than int msecs 2023-09-28 16:15:27 +02:00
timeout.c kernel: move timeout_q.h to kernel/include 2023-09-12 12:55:36 -04:00
timer.c kernel: move wait_q.h header to be internal 2023-09-12 12:55:36 -04:00
usage.c
userspace_handler.c
userspace.c ARC: fix dynamic thread stack allocation 2023-09-25 09:49:36 +02:00
version.c
work.c kernel: Fix unused-parameter warnings 2023-09-28 16:14:39 +02:00
xip.c