mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
hv: remove kick_thread from scheduler module
kick_thread function is only used by kick_vcpu to kick vcpu out of non-root mode, the implementation in it is sending IPI to target CPU if target obj is running and target PCPU is not current one; while for runnable obj, it will just make reschedule request. So the kick_thread is not actually belong to scheduler module, we can drop it and just do the cpu notification in kick_vcpu. Tracked-On: #5057 Signed-off-by: Conghui Chen <conghui.chen@intel.com> Reviewed-by: Shuo A Liu <shuo.a.liu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -666,7 +666,7 @@ void launch_vcpu(struct acrn_vcpu *vcpu);
|
||||
*
|
||||
* @return None
|
||||
*/
|
||||
void kick_vcpu(const struct acrn_vcpu *vcpu);
|
||||
void kick_vcpu(struct acrn_vcpu *vcpu);
|
||||
|
||||
/**
|
||||
* @brief create a vcpu for the vm and mapped to the pcpu.
|
||||
|
@@ -116,7 +116,6 @@ void run_thread(struct thread_object *obj);
|
||||
void sleep_thread(struct thread_object *obj);
|
||||
void sleep_thread_sync(struct thread_object *obj);
|
||||
void wake_thread(struct thread_object *obj);
|
||||
void kick_thread(const struct thread_object *obj);
|
||||
void yield_current(void);
|
||||
void schedule(void);
|
||||
|
||||
|
Reference in New Issue
Block a user