init: do not call pm_initialize() in os_start
authorEunBong Song <eunb.song@samsung.com>
Mon, 24 Apr 2017 02:07:55 +0000 (11:07 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Sat, 6 May 2017 10:51:25 +0000 (19:51 +0900)
pm_initialize() should be called in MCU-specific routine not a general
init routine. So pm_initialize() in os_start() should be removed. In
case of arm/s5j, it is called twice, at first in up_pminitialize()
and then os_start(). This should be fixed.

Change-Id: I928b1d482fcf4efd75eb6b346724c595cdd8b0ae
Signed-off-by: EunBong Song <eunb.song@samsung.com>
os/kernel/init/os_start.c

index e69b1f2..d805b44 100644 (file)
@@ -70,9 +70,6 @@
 #include  <tinyara/mm/shm.h>
 #include  <tinyara/kmalloc.h>
 #include  <tinyara/init.h>
-#ifdef CONFIG_PM
-#include <tinyara/pm/pm.h>
-#endif
 
 #include  "sched/sched.h"
 #include  "signal/signal.h"
@@ -538,12 +535,6 @@ void os_start(void)
        g_idletcb.cmn.group->tg_flags = GROUP_FLAG_NOCLDWAIT;
 #endif
 
-#ifdef CONFIG_PM
-       /* Initialize PM */
-
-       pm_initialize();
-#endif
-
        /* Bring Up the System ****************************************************/
        /* Create initial tasks and bring-up the system */