init: move init_scheduler into cpu.c

now init_scheduler should belong to and move to hwmgmt module

Tracked-On: #1842
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <edide.dong@intel.com>
This commit is contained in:
Jason Chen CJ 2018-12-20 15:27:08 +08:00 committed by wenlingz
parent ff0703dd40
commit 9672538c85
2 changed files with 2 additions and 8 deletions

View File

@ -160,6 +160,8 @@ void init_cpu_post(uint16_t pcpu_id)
pr_fatal("Please apply the latest CPU uCode patch!"); pr_fatal("Please apply the latest CPU uCode patch!");
} }
init_scheduler();
/* Initialize interrupts */ /* Initialize interrupts */
interrupt_init(BOOT_CPU_ID); interrupt_init(BOOT_CPU_ID);

View File

@ -50,12 +50,6 @@ static void init_passthru(void)
ptdev_init(); ptdev_init();
} }
/*TODO: move into guest-vcpu module */
static void init_guest(void)
{
init_scheduler();
}
/*TODO: move into guest-vcpu module */ /*TODO: move into guest-vcpu module */
static void enter_guest_mode(uint16_t pcpu_id) static void enter_guest_mode(uint16_t pcpu_id)
{ {
@ -82,8 +76,6 @@ static void init_primary_cpu_post(void)
init_debug_pre(); init_debug_pre();
init_guest();
init_cpu_post(BOOT_CPU_ID); init_cpu_post(BOOT_CPU_ID);
init_debug_post(BOOT_CPU_ID); init_debug_post(BOOT_CPU_ID);