arch: deprecate _current

`_current` is now functionally equals to `arch_curr_thread()`, remove
its usage in-tree and deprecate it instead of removing it outright,
as it has been with us since forever.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
Yong Cong Sin 2024-11-19 13:57:54 +08:00 committed by Anas Nashif
commit b1def7145f
107 changed files with 490 additions and 479 deletions

View file

@ -28,12 +28,12 @@ void test_thread_entry(void *p, void *p1, void *p2)
void thread_swap(void *p1, void *p2, void *p3)
{
k_thread_abort(_current);
k_thread_abort(arch_current_thread());
}
void thread_suspend(void *p1, void *p2, void *p3)
{
k_thread_suspend(_current);
k_thread_suspend(arch_current_thread());
}
void thread_yield0(void *p1, void *p2, void *p3)