kernel: rename thread return value functions

z_set_thread_return_value is part of the core kernel -> arch
interface and has been renamed to z_arch_thread_return_value_set.

z_set_thread_return_value_with_data renamed to
z_thread_return_value_set_with_data for consistency.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2019-09-21 16:25:56 -07:00 committed by Anas Nashif
commit 4ad9f687df
22 changed files with 31 additions and 31 deletions

View file

@ -195,18 +195,18 @@ extern struct z_kernel _kernel;
* z_swap() is in use it's a simple inline provided by the kernel.
*/
static ALWAYS_INLINE void
z_set_thread_return_value(struct k_thread *thread, unsigned int value)
z_arch_thread_return_value_set(struct k_thread *thread, unsigned int value)
{
thread->swap_retval = value;
}
#endif
static ALWAYS_INLINE void
z_set_thread_return_value_with_data(struct k_thread *thread,
z_thread_return_value_set_with_data(struct k_thread *thread,
unsigned int value,
void *data)
{
z_set_thread_return_value(thread, value);
z_arch_thread_return_value_set(thread, value);
thread->base.swap_data = data;
}