zephyr/kernel
Nicolas Pitre bc30f4f019 mem_slab: rationalize block alignment assertion
The block alignment must be enforced for statically allocated slabs
as well as runtime initialized ones. It is best to implement this
check only once in create_free_list() which is invoked by both
k_mem_slab_init() and init_mem_slab_module(), where pointers are about
to be set for the first time. It is then unnecessary to perform this
test on every slab allocation as the alignment won't change at that
point.

And not only the block size needs to be aligned, but the buffer
as well.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2019-06-20 08:42:45 -04:00
..
include kernel: introduce k_float_disable system call 2019-06-12 09:17:45 -07:00
atomic_c.c
CMakeLists.txt x86: remove unused and x86 only latency benchmark 2019-06-03 09:42:00 -07:00
compiler_stack_protect.c
device.c
errno.c
idle.c kernel: idle: exclude no-op funcs from coverage 2019-06-18 09:08:01 -04:00
init.c BOOT_BANNER: show KERNEL_VERSION and BUILD_VERSION differently 2019-06-19 15:48:08 -04:00
Kconfig x86: remove unused and x86 only latency benchmark 2019-06-03 09:42:00 -07:00
Kconfig.power_mgmt
mailbox.c k_stack: make it 64-bit compatible 2019-06-14 05:46:29 -04:00
mem_domain.c
mem_slab.c mem_slab: rationalize block alignment assertion 2019-06-20 08:42:45 -04:00
mempool.c linker generated list: provide an iterator to simplify list access 2019-06-06 14:21:32 -07:00
msg_q.c linker generated list: provide an iterator to simplify list access 2019-06-06 14:21:32 -07:00
mutex.c linker generated list: provide an iterator to simplify list access 2019-06-06 14:21:32 -07:00
pipes.c docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00
poll.c
queue.c linker generated list: provide an iterator to simplify list access 2019-06-06 14:21:32 -07:00
sched.c kernel: allow k_sleep(K_FOREVER) 2019-06-18 09:08:01 -04:00
sem.c linker generated list: provide an iterator to simplify list access 2019-06-06 14:21:32 -07:00
smp.c kernel/smp: Rename smp_init() 2019-06-05 17:15:55 -04:00
stack.c k_stack: make it 64-bit compatible 2019-06-14 05:46:29 -04:00
system_work_q.c
thread_abort.c kernel/thread_abort: Swap, don't reschedule when aborting _current 2019-06-03 12:03:48 -07:00
thread.c kernel: introduce k_float_disable system call 2019-06-12 09:17:45 -07:00
timeout.c
timer.c linker generated list: provide an iterator to simplify list access 2019-06-06 14:21:32 -07:00
userspace_handler.c
userspace.c mbedtls: move to external module 2019-06-11 08:33:53 -04:00
version.c
work_q.c