zephyr/kernel/include
Nicolas Pitre 457fa60bfc kernel: mempool: decouple simple alloc from aligned_alloc
When k_malloc() is expressed in terms of k_aligned_alloc() it invokes a
longer aligned allocation code path with an extra runtime overhead even
though no alignment is necessary.

Let's reference and invoke the aligned allocation code path only when an
actual aligned allocation is requested. This opens the possibility for
the linker to garbage-collect the aligning code otherwise.

Also bypass k_heap_malloc() and friends given they're invoked with
K_NO_WAIT. Go directly to sys_heap_*() instead to cut some more unneeded
overhead.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2025-04-01 22:13:04 +02:00
..
gen_offset.h
ipi.h
kernel_arch_interface.h
kernel_internal.h kernel: mempool: decouple simple alloc from aligned_alloc 2025-04-01 22:13:04 +02:00
kernel_offsets.h kernel: Move current_fp field out of z_kernel 2025-03-14 05:47:10 +01:00
kernel_tls.h
ksched.h kernel: fix void* to k_thread_entry_t conversion 2025-01-29 12:51:41 +01:00
kswap.h kernel: Remove clearing of swap_ok in do_swap() 2025-01-28 07:57:20 +01:00
kthread.h kernel: Streamline z_is_thread_ready() 2025-01-28 18:14:22 +01:00
mmu.h
offsets_short.h kernel: Move current_fp field out of z_kernel 2025-03-14 05:47:10 +01:00
priority_q.h kernel: rename 'dumb' scheduler and simply call it 'simple' 2025-03-15 00:34:58 +01:00
timeout_q.h
wait_q.h