sim: Omit built-in scheduler imstrumentation if buffered instrumentation is selected.

This commit is contained in:
Gregory Nutt 2016-03-17 09:50:33 -06:00
parent b1c09dc0c5
commit 8fbe5b6243
2 changed files with 5 additions and 2 deletions

View File

@ -75,8 +75,10 @@ ifeq ($(CONFIG_SMP),y)
endif
ifeq ($(CONFIG_SCHED_INSTRUMENTATION),y)
ifneq ($(CONFIG_SCHED_INSTRUMENTATION_BUFFER),y)
CSRCS += up_schednote.c
endif
endif
ifeq ($(CONFIG_DEV_CONSOLE),y)
CSRCS += up_uartwait.c

View File

@ -42,7 +42,8 @@
#include <syslog.h>
#include <nuttx/sched.h>
#ifdef CONFIG_SCHED_INSTRUMENTATION
#if defined(CONFIG_SCHED_INSTRUMENTATION) && \
!defined(CONFIG_SCHED_INSTRUMENTATION_BUFFER)
/****************************************************************************
* Public Functions
@ -194,4 +195,4 @@ void sched_note_csection(FAR struct tcb_s *tcb, bool enter)
}
#endif
#endif /* CONFIG_SCHED_INSTRUMENTATION */
#endif /* CONFIG_SCHED_INSTRUMENTATION && !CONFIG_SCHED_INSTRUMENTATION_BUFFER */