drm/i915/gvt: avoid unnecessary vgpu switch
authorPing Gao <ping.a.gao@intel.com>
Wed, 19 Apr 2017 06:02:31 +0000 (14:02 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 10 May 2017 03:14:10 +0000 (11:14 +0800)
commitae157902aea13926e9596d091cad6bd87b3be084
tree51fdf444cea44fc1617562b89c98f1e8abac505c
parent2345ab1df8a9aa3cdca942142b48eb141faeb1c3
drm/i915/gvt: avoid unnecessary vgpu switch

It's no need to switch vgpu if next vgpu is the same with current
vgpu, otherwise it will make performance drop in some case.

v2: correct the comments.

Signed-off-by: Ping Gao <ping.a.gao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/sched_policy.c