mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-04-09 22:03:33 +00:00
Replace the BSD-3-Clause boiler plate license text with an SPDX tag. Fixes: #189 Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
32 lines
668 B
C
32 lines
668 B
C
/*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef _HV_CORE_SCHEDULE_
|
|
#define _HV_CORE_SCHEDULE_
|
|
|
|
#define NEED_RESCHEDULED (1)
|
|
|
|
void init_scheduler(void);
|
|
void get_schedule_lock(int pcpu_id);
|
|
void release_schedule_lock(int pcpu_id);
|
|
|
|
void set_pcpu_used(int pcpu_id);
|
|
int allocate_pcpu(void);
|
|
void free_pcpu(int pcpu_id);
|
|
|
|
void add_vcpu_to_runqueue(struct vcpu *vcpu);
|
|
void remove_vcpu_from_runqueue(struct vcpu *vcpu);
|
|
|
|
void default_idle(void);
|
|
|
|
void make_reschedule_request(struct vcpu *vcpu);
|
|
int need_rescheduled(int pcpu_id);
|
|
void schedule(void);
|
|
|
|
void vcpu_thread(struct vcpu *vcpu);
|
|
#endif
|
|
|