diff --git a/sched/sched/sched_note.c b/sched/sched/sched_note.c index 0b9146caced..59b7f7abf7a 100644 --- a/sched/sched/sched_note.c +++ b/sched/sched/sched_note.c @@ -86,12 +86,14 @@ static struct note_filter_s g_note_filter = } }; +#ifdef CONFIG_SCHED_INSTRUMENTATION_IRQHANDLER #ifdef CONFIG_SMP static unsigned int g_note_disabled_irq_nest[CONFIG_SMP_NCPUS]; #else static unsigned int g_note_disabled_irq_nest[1]; #endif #endif +#endif /**************************************************************************** * Private Functions