summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gvt/scheduler.h
diff options
context:
space:
mode:
authorChangbin Du <changbin.du@intel.com>2017-11-29 08:40:06 +0100
committerZhenyu Wang <zhenyuw@linux.intel.com>2017-12-04 04:24:34 +0100
commit59a716c6477c2a095adf274e8f76b9889af7bc7b (patch)
treee4841d5410cbe7134b1d94d968bae271238a7ea7 /drivers/gpu/drm/i915/gvt/scheduler.h
parentdrm/i915/gvt: Free dmabuf_obj list in intel_vgpu_dmabuf_cleanup (diff)
downloadlinux-59a716c6477c2a095adf274e8f76b9889af7bc7b.tar.xz
linux-59a716c6477c2a095adf274e8f76b9889af7bc7b.zip
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>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/scheduler.h')
-rw-r--r--drivers/gpu/drm/i915/gvt/scheduler.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/gvt/scheduler.h b/drivers/gpu/drm/i915/gvt/scheduler.h
index e4a9f9acd4a9..3de77dfa7c59 100644
--- a/drivers/gpu/drm/i915/gvt/scheduler.h
+++ b/drivers/gpu/drm/i915/gvt/scheduler.h
@@ -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);