zephyr/kernel
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
..
include kernel: priority queues: declare as static inlines 2024-04-22 16:40:11 -04:00
paging
CMakeLists.txt kernel: move nothread support to own file 2024-04-06 14:22:08 +03:00
Kconfig kernel: add the ability to memory map thread stacks 2024-04-10 07:44:27 -04:00
Kconfig.device
Kconfig.obj_core
Kconfig.smp
Kconfig.vm
atomic_c.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
banner.c kernel: banner: use BUILD_VERSION only if not empty 2024-04-04 23:47:33 +02:00
busy_wait.c
compiler_stack_protect.c
condvar.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
cpu_mask.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
device.c
dynamic.c kernel: align kernel stack size declaration 2024-03-27 19:27:10 -04:00
dynamic_disabled.c
errno.c
events.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
fatal.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
float.c
futex.c
idle.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
init.c kernel: Device deferred initialization 2024-04-11 15:50:44 -04:00
ipi.c kernel: rename sliceable -> thread_is_sliceable 2024-04-01 18:47:36 -04:00
irq_offload.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
kheap.c
mailbox.c kernel: Clean up mailbox async msg configuration 2024-04-09 11:05:55 +02:00
main_weak.c
mem_domain.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
mem_slab.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
mempool.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
mmu.c kernel: mm: introduce k_mem_phys_map()/_unmap() 2024-04-10 07:44:27 -04:00
msg_q.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
mutex.c kernel: move thread related helper function kthread.h 2024-04-01 18:47:36 -04:00
nothread.c kernel: move nothread support to own file 2024-04-06 14:22:08 +03:00
obj_core.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
pipes.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
poll.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
priority_queues.c kernel: priority queues: declare as static inlines 2024-04-22 16:40:11 -04:00
queue.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
sched.c kernel: priority queues: declare as static inlines 2024-04-22 16:40:11 -04:00
sem.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
smp.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
spinlock_validate.c
stack.c kernel: stack: Check possible overflow 2024-04-22 15:20:39 -04:00
system_work_q.c
thread.c kernel: add the ability to memory map thread stacks 2024-04-10 07:44:27 -04:00
thread_monitor.c
timeout.c kernel: timeout: Optimize setting next alarm 2024-04-09 13:55:07 -04:00
timer.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
timeslicing.c kernel: thread: rename is_preempt 2024-04-01 18:47:36 -04:00
usage.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
userspace.c kernel: align thread stack size declaration 2024-03-27 19:27:10 -04:00
userspace_handler.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
version.c
work.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
xip.c