sched_note.c: Condition g_note_disabled_irq_nest with

INSTRUMENTATION_IRQHANDLER to avoid warnings.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche
2021-11-26 18:11:11 +01:00
committed by Xiang Xiao
parent 80d32edbe1
commit 7776c6ad0e
+2
View File
@@ -86,12 +86,14 @@ static struct note_filter_s g_note_filter =
} }
}; };
#ifdef CONFIG_SCHED_INSTRUMENTATION_IRQHANDLER
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
static unsigned int g_note_disabled_irq_nest[CONFIG_SMP_NCPUS]; static unsigned int g_note_disabled_irq_nest[CONFIG_SMP_NCPUS];
#else #else
static unsigned int g_note_disabled_irq_nest[1]; static unsigned int g_note_disabled_irq_nest[1];
#endif #endif
#endif #endif
#endif
/**************************************************************************** /****************************************************************************
* Private Functions * Private Functions