From a6521119dbd26bf1d784dc2baa178eb67d6e0083 Mon Sep 17 00:00:00 2001 From: EunBong Song Date: Mon, 24 Apr 2017 11:07:55 +0900 Subject: [PATCH] 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 --- os/kernel/init/os_start.c | 9 --------- 1 file changed, 9 deletions(-) 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 */ -- 2.7.4