drm/i915/gvt: To check whether workload scan and shadow has mutex hold
authorPing Gao <ping.a.gao@intel.com>
Tue, 4 Jul 2017 06:53:03 +0000 (14:53 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 10 Aug 2017 02:26:07 +0000 (10:26 +0800)
commit87e919d741f9bf07f8aad6f096c6ebc3345a9856
tree841df1c05b31fcf48a821792286b0040b9870a56
parentd0302e74003bf1f0fc41c06948b745204c4704ea
drm/i915/gvt: To check whether workload scan and shadow has mutex hold

The function workload scan and shadow have to hold the drm.struct_mutex
before called. To avoid misusing of this function, add a lockdep assert
in it.

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