]> 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)
commitdf9e812efb0181dbeb437ae05d902cb9c08f4f11
tree841df1c05b31fcf48a821792286b0040b9870a56
parent9d9b9f1f8df7fa5d220565284362a7f15832503c
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