Revert "arch: deprecate _current
"
Mostly a revert of commit b1def7145f
("arch: deprecate `_current`").
This commit was part of PR #80716 whose initial purpose was about providing
an architecture specific optimization for _current. The actual deprecation
was sneaked in later on without proper discussion.
The Zephyr core always used _current before and that was fine. It is quite
prevalent as well and the alternative is proving rather verbose.
Furthermore, as a concept, the "current thread" is not something that is
necessarily architecture specific. Therefore the primary abstraction
should not carry the arch_ prefix.
Hence this revert.
Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
This commit is contained in:
parent
31f581951f
commit
46aa6717ff
111 changed files with 494 additions and 504 deletions
|
@ -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(arch_current_thread());
|
||||
k_thread_abort(_current);
|
||||
}
|
||||
|
||||
void thread_suspend(void *p1, void *p2, void *p3)
|
||||
{
|
||||
k_thread_suspend(arch_current_thread());
|
||||
k_thread_suspend(_current);
|
||||
}
|
||||
|
||||
void thread_yield0(void *p1, void *p2, void *p3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue