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:
Anas Nashif 2019-09-29 09:34:46 -04:00
commit 4abbd54cd5
2 changed files with 0 additions and 14 deletions

View file

@ -53,9 +53,7 @@ static ALWAYS_INLINE unsigned int do_swap(unsigned int key,
z_check_stack_sentinel();
#ifdef CONFIG_TRACING
sys_trace_thread_switched_out();
#endif
if (is_spinlock) {
k_spin_release(lock);
@ -84,9 +82,7 @@ static ALWAYS_INLINE unsigned int do_swap(unsigned int key,
&old_thread->switch_handle);
}
#ifdef CONFIG_TRACING
sys_trace_thread_switched_in();
#endif
if (is_spinlock) {
z_arch_irq_unlock(key);
@ -125,15 +121,11 @@ static inline int z_swap_irqlock(unsigned int key)
z_check_stack_sentinel();
#ifndef CONFIG_ARM
#ifdef CONFIG_TRACING
sys_trace_thread_switched_out();
#endif
#endif
ret = __swap(key);
#ifndef CONFIG_ARM
#ifdef CONFIG_TRACING
sys_trace_thread_switched_in();
#endif
#endif
return ret;

View file

@ -593,13 +593,7 @@ struct k_thread *z_get_next_ready_thread(void)
/* Just a wrapper around _current = xxx with tracing */
static inline void set_current(struct k_thread *new_thread)
{
#ifdef CONFIG_TRACING
sys_trace_thread_switched_out();
#endif
_current = new_thread;
#ifdef CONFIG_TRACING
sys_trace_thread_switched_in();
#endif
}
#ifdef CONFIG_USE_SWITCH