schedule: use per_cpu idle object

To support full context switch scheduling, each physical
CPU must have its own idle sched_obj.

Tracked-On: #2394
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Xu, Anthony <anthony.xu@intel.com>
This commit is contained in:
Jason Chen CJ
2019-01-18 13:50:21 +08:00
committed by wenlingz
parent 5e94788689
commit 21092e6f6d
2 changed files with 7 additions and 9 deletions

View File

@@ -39,6 +39,7 @@ struct per_cpu_region {
#endif
struct per_cpu_timers cpu_timers;
struct sched_context sched_ctx;
struct sched_object idle;
struct instr_emul_ctxt g_inst_ctxt;
struct host_gdt gdt;
struct tss_64 tss;