mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
hv: sched: rename schedule related structs and vars
prepare_switch_out -> switch_out prepare_switch_in -> switch_in prepare_switch -> do_switch run_thread_t -> thread_entry_t sched_object -> thread_object sched_object.thread -> thread_object.thread_entry sched_obj -> thread_obj sched_context -> sched_control sched_ctx -> sched_ctl Tracked-On: #3813 Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Signed-off-by: Yu Wang <yu1.wang@intel.com> Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
89f53a409a
commit
837e4d8788
@@ -247,7 +247,7 @@ struct acrn_vcpu {
|
||||
volatile enum vcpu_state prev_state;
|
||||
volatile enum vcpu_state state; /* State of this VCPU */
|
||||
|
||||
struct sched_object sched_obj;
|
||||
struct thread_object thread_obj;
|
||||
bool launched; /* Whether the vcpu is launched on target pcpu */
|
||||
volatile bool running; /* vcpu is picked up and run? */
|
||||
|
||||
@@ -286,8 +286,8 @@ vcpu_vlapic(struct acrn_vcpu *vcpu)
|
||||
return &(vcpu->arch.vlapic);
|
||||
}
|
||||
|
||||
void default_idle(__unused struct sched_object *obj);
|
||||
void vcpu_thread(struct sched_object *obj);
|
||||
void default_idle(__unused struct thread_object *obj);
|
||||
void vcpu_thread(struct thread_object *obj);
|
||||
|
||||
int32_t vmx_vmrun(struct run_context *context, int32_t ops, int32_t ibrs);
|
||||
|
||||
|
@@ -37,8 +37,8 @@ struct per_cpu_region {
|
||||
struct stack_canary stk_canary;
|
||||
#endif
|
||||
struct per_cpu_timers cpu_timers;
|
||||
struct sched_context sched_ctx;
|
||||
struct sched_object idle;
|
||||
struct sched_control sched_ctl;
|
||||
struct thread_object idle;
|
||||
struct host_gdt gdt;
|
||||
struct tss_64 tss;
|
||||
enum pcpu_boot_state boot_state;
|
||||
|
Reference in New Issue
Block a user