tracing: remove useless ifdefing for CONFIG_TRACING
Tracing functions are noop if CONFIG_TRACING is disabled. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
40ca638a00
commit
4abbd54cd5
2 changed files with 0 additions and 14 deletions
|
@ -53,9 +53,7 @@ static ALWAYS_INLINE unsigned int do_swap(unsigned int key,
|
||||||
|
|
||||||
z_check_stack_sentinel();
|
z_check_stack_sentinel();
|
||||||
|
|
||||||
#ifdef CONFIG_TRACING
|
|
||||||
sys_trace_thread_switched_out();
|
sys_trace_thread_switched_out();
|
||||||
#endif
|
|
||||||
|
|
||||||
if (is_spinlock) {
|
if (is_spinlock) {
|
||||||
k_spin_release(lock);
|
k_spin_release(lock);
|
||||||
|
@ -84,9 +82,7 @@ static ALWAYS_INLINE unsigned int do_swap(unsigned int key,
|
||||||
&old_thread->switch_handle);
|
&old_thread->switch_handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_TRACING
|
|
||||||
sys_trace_thread_switched_in();
|
sys_trace_thread_switched_in();
|
||||||
#endif
|
|
||||||
|
|
||||||
if (is_spinlock) {
|
if (is_spinlock) {
|
||||||
z_arch_irq_unlock(key);
|
z_arch_irq_unlock(key);
|
||||||
|
@ -125,15 +121,11 @@ static inline int z_swap_irqlock(unsigned int key)
|
||||||
z_check_stack_sentinel();
|
z_check_stack_sentinel();
|
||||||
|
|
||||||
#ifndef CONFIG_ARM
|
#ifndef CONFIG_ARM
|
||||||
#ifdef CONFIG_TRACING
|
|
||||||
sys_trace_thread_switched_out();
|
sys_trace_thread_switched_out();
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
ret = __swap(key);
|
ret = __swap(key);
|
||||||
#ifndef CONFIG_ARM
|
#ifndef CONFIG_ARM
|
||||||
#ifdef CONFIG_TRACING
|
|
||||||
sys_trace_thread_switched_in();
|
sys_trace_thread_switched_in();
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
@ -593,13 +593,7 @@ struct k_thread *z_get_next_ready_thread(void)
|
||||||
/* Just a wrapper around _current = xxx with tracing */
|
/* Just a wrapper around _current = xxx with tracing */
|
||||||
static inline void set_current(struct k_thread *new_thread)
|
static inline void set_current(struct k_thread *new_thread)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_TRACING
|
|
||||||
sys_trace_thread_switched_out();
|
|
||||||
#endif
|
|
||||||
_current = new_thread;
|
_current = new_thread;
|
||||||
#ifdef CONFIG_TRACING
|
|
||||||
sys_trace_thread_switched_in();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_USE_SWITCH
|
#ifdef CONFIG_USE_SWITCH
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue