diff options
author | Ping Gao <ping.a.gao@intel.com> | 2017-03-29 19:36:34 +0300 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2017-03-30 08:32:24 +0300 |
commit | 91d0101ad30bd1bd7f7f805f4fa314c6b70bb602 (patch) | |
tree | 1309d69ef2f1262f7d9c55eafe2db960a424e446 /drivers/gpu/drm/i915/gvt/sched_policy.h | |
parent | 865f03d42ed0c90c9faf3301775176834ba13eba (diff) | |
download | linux-91d0101ad30bd1bd7f7f805f4fa314c6b70bb602.tar.xz |
drm/i915/gvt: use hrtimer replace delayed_work in scheduler
Currently the scheduler is triggered by delayed_work, which doesn't
provide precision at microsecond level. Move to hrtimer instead for
more accurate control.
Signed-off-by: Ping Gao <ping.a.gao@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/sched_policy.h')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/sched_policy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/sched_policy.h b/drivers/gpu/drm/i915/gvt/sched_policy.h index bb8b9097e41a..ba00a5f7455f 100644 --- a/drivers/gpu/drm/i915/gvt/sched_policy.h +++ b/drivers/gpu/drm/i915/gvt/sched_policy.h @@ -43,6 +43,8 @@ struct intel_gvt_sched_policy_ops { void (*stop_schedule)(struct intel_vgpu *vgpu); }; +void intel_gvt_schedule(struct intel_gvt *gvt); + int intel_gvt_init_sched_policy(struct intel_gvt *gvt); void intel_gvt_clean_sched_policy(struct intel_gvt *gvt); |