kernel: merge _IS_IN_ISR() with _is_in_isr()
They were the same, standardize on the lowercase one. Change-Id: I8bca080e45f3e0970697d4451e468b9081f96f5f Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
539003b697
commit
b452817b67
|
@ -350,8 +350,6 @@ static ALWAYS_INLINE int _is_in_isr(void)
|
|||
return ((act & 0xffff) != 0);
|
||||
}
|
||||
|
||||
#define _IS_IN_ISR _is_in_isr
|
||||
|
||||
/**
|
||||
*
|
||||
* @bried Indicates the interrupt number of the highest priority
|
||||
|
|
|
@ -322,7 +322,6 @@ _set_thread_return_value_with_data(struct k_thread *thread, unsigned int value,
|
|||
|
||||
extern void nano_cpu_atomic_idle(unsigned int);
|
||||
|
||||
#define _IS_IN_ISR() _IsInIsr()
|
||||
#define _is_in_isr() _IsInIsr()
|
||||
|
||||
extern void _IntLibInit(void);
|
||||
|
|
|
@ -263,7 +263,6 @@ FUNC_NORETURN void _NanoFatalErrorHandler(unsigned int reason,
|
|||
const NANO_ESF *esf);
|
||||
|
||||
|
||||
#define _IS_IN_ISR() (_nanokernel.nested != 0)
|
||||
#define _is_in_isr() (_nanokernel.nested != 0)
|
||||
|
||||
#ifdef CONFIG_IRQ_OFFLOAD
|
||||
|
|
|
@ -919,7 +919,6 @@ extern unsigned char _idt_base_address[];
|
|||
}
|
||||
#endif
|
||||
|
||||
#define _IS_IN_ISR() (_nanokernel.nested != 0)
|
||||
#define _is_in_isr() (_nanokernel.nested != 0)
|
||||
|
||||
#endif /* _ASMLANGUAGE */
|
||||
|
|
|
@ -38,7 +38,7 @@ nano_thread_id_t sys_thread_self_get(void)
|
|||
|
||||
nano_context_type_t sys_execution_context_type_get(void)
|
||||
{
|
||||
if (_IS_IN_ISR())
|
||||
if (_is_in_isr())
|
||||
return NANO_CTX_ISR;
|
||||
|
||||
if ((_nanokernel.current->flags & TASK) == TASK)
|
||||
|
|
|
@ -62,7 +62,7 @@ int sys_execution_context_type_get(void)
|
|||
*/
|
||||
int k_am_in_isr(void)
|
||||
{
|
||||
return _IS_IN_ISR();
|
||||
return _is_in_isr();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -29,7 +29,7 @@ void offload_function(void *param)
|
|||
TC_PRINT("offload_function running\n");
|
||||
|
||||
/* Make sure we're in IRQ context */
|
||||
if (!_IS_IN_ISR()) {
|
||||
if (!_is_in_isr()) {
|
||||
TC_PRINT("Not in IRQ context!\n");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue