kernel: s/k_current_get/_current
Running inside kernel we can use _current instead of k_current_get that can lead to additional function call checks. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
1442a6cf5b
commit
711c17182f
2 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ void z_fatal_error(unsigned int reason, const z_arch_esf_t *esf)
|
|||
*/
|
||||
unsigned int key = arch_irq_lock();
|
||||
struct k_thread *thread = IS_ENABLED(CONFIG_MULTITHREADING) ?
|
||||
k_current_get() : NULL;
|
||||
_current : NULL;
|
||||
|
||||
/* twister looks for the "ZEPHYR FATAL ERROR" string, don't
|
||||
* change it without also updating twister
|
||||
|
|
|
@ -785,7 +785,7 @@ void z_object_recycle(const void *obj)
|
|||
|
||||
if (ko != NULL) {
|
||||
(void)memset(ko->perms, 0, sizeof(ko->perms));
|
||||
z_thread_perms_set(ko, k_current_get());
|
||||
z_thread_perms_set(ko, _current);
|
||||
ko->flags |= K_OBJ_FLAG_INITIALIZED;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue