From: EunBong Song Date: Mon, 24 Apr 2017 02:07:55 +0000 (+0900) Subject: init: do not call pm_initialize() in os_start X-Git-Tag: 1.1_Public_Release~597^2~102 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6521119dbd26bf1d784dc2baa178eb67d6e0083;p=rtos%2Ftinyara.git init: do not call pm_initialize() in os_start 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 --- diff --git a/os/kernel/init/os_start.c b/os/kernel/init/os_start.c index e69b1f2..d805b44 100644 --- a/os/kernel/init/os_start.c +++ b/os/kernel/init/os_start.c @@ -70,9 +70,6 @@ #include #include #include -#ifdef CONFIG_PM -#include -#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 */