summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/gvt/scheduler.h
diff options
context:
space:
mode:
authorZhi Wang <zhi.a.wang@intel.com>2016-05-01 17:09:58 -0400
committerZhenyu Wang <zhenyuw@linux.intel.com>2016-10-14 18:15:02 +0800
commit4b63960ebd3f4c41caca6a8dca68751b34e61e9b (patch)
tree10c6ef6d9c548b2d243c53c32109f5da9a29a9e6 /drivers/gpu/drm/i915/gvt/scheduler.h
parente473405783c064a9d859d108010581bae8e9af40 (diff)
drm/i915/gvt: vGPU schedule policy framework
This patch introduces a vGPU schedule policy framework, with a timer based schedule policy module for now Signed-off-by: Zhi Wang <zhi.a.wang@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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/scheduler.h b/drivers/gpu/drm/i915/gvt/scheduler.h
index 9206cc02c8a8..2500438d7aa7 100644
--- a/drivers/gpu/drm/i915/gvt/scheduler.h
+++ b/drivers/gpu/drm/i915/gvt/scheduler.h
@@ -45,6 +45,9 @@ struct intel_gvt_workload_scheduler {
wait_queue_head_t workload_complete_wq;
struct task_struct *thread[I915_NUM_ENGINES];
wait_queue_head_t waitq[I915_NUM_ENGINES];
+
+ void *sched_data;
+ struct intel_gvt_sched_policy_ops *sched_ops;
};
struct intel_vgpu_workload {