From fa1e151b12e37c67e709f7752185ffc8e441cd43 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 12 Feb 2019 21:01:22 -0600 Subject: [PATCH] sched/: Removed too much conditional compilation in commit 967dc523bbbf8e4a82faa30e8c1b8b41be4bf7ab --- sched/init/nx_bringup.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sched/init/nx_bringup.c b/sched/init/nx_bringup.c index 810775b1bdb..27d39c37295 100644 --- a/sched/init/nx_bringup.c +++ b/sched/init/nx_bringup.c @@ -336,13 +336,15 @@ static inline void nx_start_application(void) * ****************************************************************************/ -static inline int nx_start_task(int argc, FAR char **argv) +#ifdef CONFIG_BOARD_INITIALIZE +static int nx_start_task(int argc, FAR char **argv) { /* Do the board/application initialization and exit */ nx_start_application(); return OK; } +#endif /**************************************************************************** * Name: nx_create_initthread @@ -363,6 +365,7 @@ static inline int nx_start_task(int argc, FAR char **argv) static inline void nx_create_initthread(void) { +#ifdef CONFIG_BOARD_INITIALIZE int pid; /* Do the board/application initialization on a separate thread of @@ -374,6 +377,11 @@ static inline void nx_create_initthread(void) (main_t)nx_start_task, (FAR char * const *)NULL); DEBUGASSERT(pid > 0); UNUSED(pid); +#else + /* Do the board/application initialization on this thread of execution. */ + + nx_start_application(); +#endif } /****************************************************************************