zephyr/kernel/include
Anas Nashif 4593f0d71c kernel: priority queues: declare as static inlines
After the move to C files we got some drop in the performance when
running latency_measure. This patch declares the priority queue
functions as static inlines with minor optimizations.

The result for one metric (on qemu):

3.6 and before the anything was changed:

  Get data from LIFO (w/ ctx switch): 13087 ns

after original change (46484da502):

  Get data from LIFO (w/ ctx switch): 13663 ns

with this change:

  Get data from LIFO (w/ ctx switch): 12543 ns

So overall, a net gain of ~ 500ns that can be seen across the board on many
of the metrics.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-04-22 16:40:11 -04:00
..
gen_offset.h kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
ipi.h kernel: split timeslicing/ipi code out of sched.c 2024-04-01 18:47:36 -04:00
kernel_arch_interface.h kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
kernel_internal.h kernel: add options to cleanup after aborting current thread 2024-04-10 07:44:27 -04:00
kernel_offsets.h kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
kernel_tls.h linker: Round TLS sizes up in linker script 2024-02-25 22:28:56 -05:00
ksched.h kernel: add options to cleanup after aborting current thread 2024-04-10 07:44:27 -04:00
kswap.h kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
kthread.h kernel: move nothread support to own file 2024-04-06 14:22:08 +03:00
mmu.h kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
offsets_short.h kernel: Remove unused derived offset symbols 2023-02-22 16:01:32 +01:00
priority_q.h kernel: priority queues: declare as static inlines 2024-04-22 16:40:11 -04:00
timeout_q.h kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
wait_q.h kernel: move priority queue handling to own file/header 2024-03-02 15:06:45 +01:00