zephyr/kernel/include
Nicolas Pitre 7a3124d866 kernel: move current thread pointer management to core code
Define the generic _current directly and get rid of the generic
arch_current_get().

The SMP default implementation is now known as z_smp_current_get().
It is no longer inlined which saves significant binary size (about 10%
for some random test case I checked).

Introduce z_current_thread_set() and use it in place of
arch_current_thread_set() for updating the current thread pointer
given this is not necessarily an architecture specific operation.
The architecture specific optimization, when enabled, should only care
about its own things and not have to also update the generic
_current_cpu->current copy.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2025-01-10 07:49:08 +01:00
..
gen_offset.h arch: remove the use of z_arch_esf_t completely from internal 2024-06-04 14:02:51 -05:00
ipi.h kernel: Add CONFIG_IPI_OPTIMIZE 2024-06-04 22:35:54 -04:00
kernel_arch_interface.h kernel: arch: move arch_swap() declaration 2024-12-11 21:33:49 +01:00
kernel_internal.h Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
kernel_offsets.h arch: riscv: fill all IRQ stacks with 0xAA 2024-09-13 09:17:34 +02:00
kernel_tls.h linker: Round TLS sizes up in linker script 2024-02-25 22:28:56 -05:00
ksched.h Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
kswap.h kernel: move current thread pointer management to core code 2025-01-10 07:49:08 +01:00
kthread.h Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
mmu.h kernel: mm: rename z_num_pagefaults_get to k_mem_num_* 2024-06-12 21:13:26 -04:00
offsets_short.h build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
priority_q.h Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
timeout_q.h kernel: Alter z_abort_thread_timeout() return type 2025-01-09 04:04:36 +01:00
wait_q.h kernel: move priority queue handling to own file/header 2024-03-02 15:06:45 +01:00