mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 03:26:23 +07:00
drm/i915/gvt: Convert macro queue_workload to a function
Convert the macro to a function which should always be preferred. Signed-off-by: Changbin Du <changbin.du@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
This commit is contained in:
parent
82a3b6701a
commit
59a716c647
@ -458,7 +458,7 @@ static int submit_context(struct intel_vgpu *vgpu, int ring_id,
|
||||
gvt_dbg_el("workload %p emulate schedule_in %d\n", workload,
|
||||
emulate_schedule_in);
|
||||
|
||||
queue_workload(workload);
|
||||
intel_vgpu_queue_workload(workload);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1328,3 +1328,14 @@ intel_vgpu_create_workload(struct intel_vgpu *vgpu, int ring_id,
|
||||
|
||||
return workload;
|
||||
}
|
||||
|
||||
/**
|
||||
* intel_vgpu_queue_workload - Qeue a vGPU workload
|
||||
* @workload: the workload to queue in
|
||||
*/
|
||||
void intel_vgpu_queue_workload(struct intel_vgpu_workload *workload)
|
||||
{
|
||||
list_add_tail(&workload->list,
|
||||
workload_q_head(workload->vgpu, workload->ring_id));
|
||||
wake_up(&workload->vgpu->gvt->scheduler.waitq[workload->ring_id]);
|
||||
}
|
||||
|
@ -125,12 +125,7 @@ struct intel_vgpu_shadow_bb {
|
||||
#define workload_q_head(vgpu, ring_id) \
|
||||
(&(vgpu->submission.workload_q_head[ring_id]))
|
||||
|
||||
#define queue_workload(workload) do { \
|
||||
list_add_tail(&workload->list, \
|
||||
workload_q_head(workload->vgpu, workload->ring_id)); \
|
||||
wake_up(&workload->vgpu->gvt-> \
|
||||
scheduler.waitq[workload->ring_id]); \
|
||||
} while (0)
|
||||
void intel_vgpu_queue_workload(struct intel_vgpu_workload *workload);
|
||||
|
||||
int intel_gvt_init_workload_scheduler(struct intel_gvt *gvt);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user