You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/11/27 12:16:31 UTC
[incubator-nuttx] branch master updated: sched_note.c: Condition g_note_disabled_irq_nest with INSTRUMENTATION_IRQHANDLER to avoid warnings.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 7776c6a sched_note.c: Condition g_note_disabled_irq_nest with INSTRUMENTATION_IRQHANDLER to avoid warnings.
7776c6a is described below
commit 7776c6ad0ec286ab6a38e4f0bae40ee3041d3657
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Fri Nov 26 18:11:11 2021 +0100
sched_note.c: Condition g_note_disabled_irq_nest with
INSTRUMENTATION_IRQHANDLER to avoid warnings.
Signed-off-by: Abdelatif Guettouche <ab...@espressif.com>
---
sched/sched/sched_note.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sched/sched/sched_note.c b/sched/sched/sched_note.c
index 0b9146c..59b7f7a 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