Skip to content
Commit f07df42d authored by Andrew Boie's avatar Andrew Boie Committed by Christopher Friedt
Browse files

kernel: make k_current_get() work without syscall



We cache the current thread ID in a thread-local variable
at thread entry, and have k_current_get() return that,
eliminating system call overhead for this API.

DL: changed _current to use z_current_get() as it is
    being used during boot where TLS is not available.

Signed-off-by: default avatarAndrew Boie <andrew.p.boie@intel.com>
Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent c661765f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment