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>
#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"
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 */