diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-29 06:50:48 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-29 06:50:48 -0600 |
commit | e6ce09d1a6daf619d06a0c5237fc935a8758398b (patch) | |
tree | 9ded6a97bf7dd7ea60e17986a52b972ef6490b53 /nuttx/sched/init | |
parent | 490134ea71ef420ac319d77685330001261b0ea4 (diff) | |
download | nuttx-e6ce09d1a6daf619d06a0c5237fc935a8758398b.tar.gz nuttx-e6ce09d1a6daf619d06a0c5237fc935a8758398b.tar.bz2 nuttx-e6ce09d1a6daf619d06a0c5237fc935a8758398b.zip |
Semaphore initialization is now only required if priority inheritance is initialized
Diffstat (limited to 'nuttx/sched/init')
-rw-r--r-- | nuttx/sched/init/os_start.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/nuttx/sched/init/os_start.c b/nuttx/sched/init/os_start.c index ca0fdb21f..309cb4020 100644 --- a/nuttx/sched/init/os_start.c +++ b/nuttx/sched/init/os_start.c @@ -334,17 +334,11 @@ void os_start(void) up_initial_state(&g_idletcb.cmn); /* Initialize RTOS facilities *********************************************/ - /* Initialize the semaphore facility(if in link). This has to be done - * very early because many subsystems depend upon fully functional - * semaphores. + /* Initialize the semaphore facility. This has to be done very early + * because many subsystems depend upon fully functional semaphores. */ -#ifdef CONFIG_HAVE_WEAKFUNCTIONS - if (sem_initialize != NULL) -#endif - { - sem_initialize(); - } + sem_initialize(); /* Initialize the memory manager */ |