kernel: rename k_am_in_isr() to k_is_in_isr()
Change-Id: Ie312da34dbbfbeb2c76bbf38905d8f334da28b63 Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
3cc2ba9f9c
commit
c7ba8b17e1
|
@ -132,4 +132,4 @@ These are the interrupt-related Application Program Interfaces.
|
|||
* :cpp:func:`irq_disable()`
|
||||
* :cpp:func:`irq_lock()`
|
||||
* :cpp:func:`irq_unlock()`
|
||||
* :cpp:func:`k_am_in_isr()`
|
||||
* :cpp:func:`k_is_in_isr()`
|
||||
|
|
|
@ -49,7 +49,7 @@ each thread calls a specific routine.
|
|||
{
|
||||
uint32_t call_count;
|
||||
|
||||
if (k_am_in_isr()) {
|
||||
if (k_is_in_isr()) {
|
||||
/* ignore any call made by an ISR */
|
||||
} else {
|
||||
call_count = (uint32_t)k_thread_custom_data_get();
|
||||
|
|
|
@ -381,7 +381,7 @@ extern void k_sched_time_slice_set(int32_t slice, int prio);
|
|||
*
|
||||
* @return 0 if invoked by a thread, or non-zero if invoked by an ISR
|
||||
*/
|
||||
extern int k_am_in_isr(void);
|
||||
extern int k_is_in_isr(void);
|
||||
|
||||
/**
|
||||
* @brief Set thread's custom data
|
||||
|
|
|
@ -47,7 +47,7 @@ extern struct _static_thread_data _static_thread_data_list_end[];
|
|||
|
||||
int sys_execution_context_type_get(void)
|
||||
{
|
||||
if (k_am_in_isr())
|
||||
if (k_is_in_isr())
|
||||
return NANO_CTX_ISR;
|
||||
|
||||
if (_current->prio < 0)
|
||||
|
@ -56,7 +56,7 @@ int sys_execution_context_type_get(void)
|
|||
return NANO_CTX_TASK;
|
||||
}
|
||||
|
||||
int k_am_in_isr(void)
|
||||
int k_is_in_isr(void)
|
||||
{
|
||||
return _is_in_isr();
|
||||
}
|
||||
|
|
|
@ -215,7 +215,7 @@ static pfunc func_array[] = {
|
|||
(pfunc)k_thread_suspend,
|
||||
(pfunc)k_thread_resume,
|
||||
(pfunc)k_sched_time_slice_set,
|
||||
(pfunc)k_am_in_isr,
|
||||
(pfunc)k_is_in_isr,
|
||||
(pfunc)k_thread_custom_data_set,
|
||||
(pfunc)k_thread_custom_data_get,
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue