]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/gvt: clean up the unused last_ctx_submit_time of struct intel_vgpu
authorChangbin Du <changbin.du@intel.com>
Mon, 22 May 2017 09:46:47 +0000 (17:46 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 8 Jun 2017 05:59:15 +0000 (13:59 +0800)
Clean up it as it is not used now.

Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gvt.h
drivers/gpu/drm/i915/gvt/handlers.c

index 930732e5c7806d8970183f5d389c52d388bf2fc3..0b2a4a11ae9b612e8e242fe796c826a733ff67d2 100644 (file)
@@ -165,7 +165,6 @@ struct intel_vgpu {
        struct list_head workload_q_head[I915_NUM_ENGINES];
        struct kmem_cache *workloads;
        atomic_t running_workload_num;
-       ktime_t last_ctx_submit_time;
        DECLARE_BITMAP(tlb_handle_pending, I915_NUM_ENGINES);
        struct i915_gem_context *shadow_ctx;
 
index 3edff42d8f0c4f6f353eeec14854167c445271f3..45e5907158b786b7036f1347132fb95fee27db86 100644 (file)
@@ -1433,7 +1433,6 @@ static int elsp_mmio_write(struct intel_vgpu *vgpu, unsigned int offset,
 
        execlist->elsp_dwords.data[execlist->elsp_dwords.index] = data;
        if (execlist->elsp_dwords.index == 3) {
-               vgpu->last_ctx_submit_time = ktime_get();
                ret = intel_vgpu_submit_execlist(vgpu, ring_id);
                if(ret)
                        gvt_vgpu_err("fail submit workload on ring %d\n",