mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
HV: Add one delmode parameter to make_reschedule_request
This patch makes make_reschedule_request support for kicking off vCPU using INIT. Tracked-On: #2865 Signed-off-by: Kaige Fu <kaige.fu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
ef9be0208a
commit
2771b46b1d
@@ -11,6 +11,9 @@
|
||||
#define NEED_RESCHEDULE (1U)
|
||||
#define NEED_OFFLINE (2U)
|
||||
|
||||
#define DEL_MODE_INIT (1U)
|
||||
#define DEL_MODE_IPI (2U)
|
||||
|
||||
struct sched_object;
|
||||
typedef void (*run_thread_t)(struct sched_object *obj);
|
||||
typedef void (*prepare_switch_t)(struct sched_object *obj);
|
||||
@@ -43,7 +46,7 @@ void free_pcpu(uint16_t pcpu_id);
|
||||
void add_to_cpu_runqueue(struct sched_object *obj, uint16_t pcpu_id);
|
||||
void remove_from_cpu_runqueue(struct sched_object *obj, uint16_t pcpu_id);
|
||||
|
||||
void make_reschedule_request(uint16_t pcpu_id);
|
||||
void make_reschedule_request(uint16_t pcpu_id, uint16_t delmode);
|
||||
bool need_reschedule(uint16_t pcpu_id);
|
||||
void make_pcpu_offline(uint16_t pcpu_id);
|
||||
int32_t need_offline(uint16_t pcpu_id);
|
||||
|
Reference in New Issue
Block a user