mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-17 15:51:34 +00:00
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:
parent
ff0703dd40
commit
9672538c85
@ -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);
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user