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:
Conghui Chen
2020-07-17 22:24:31 +08:00
committed by wenlingz
parent b6422f8985
commit 53d4a7169b
4 changed files with 14 additions and 37 deletions

View File

@@ -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.

View File

@@ -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);