]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdf8309147d21b0e69c3029cb9cc49581022d1bf5
tree841df1c05b31fcf48a821792286b0040b9870a56
parent6c7c2fe9a15f959b42d9d752e2020e1d87ae291b
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