aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2018-06-14 03:29:22 -0400
committerThomas Hellstrom <thellstrom@vmware.com>2018-07-03 03:46:05 -0400
commit07c13bb78c8b8a9cb6ee169659528945038d5e85 (patch)
tree25705151c707f97c7861e89e2b5aebbf92b14055
parent08295b3b5beec9aac0f7a9db86f0fc3792039da3 (diff)
drm: Change deadlock-avoidance algorithm for the modeset locks.
For modeset locks we don't expect a high number of contending transactions so change algorithm from Wait-Die to Wound-Wait. Cc: dri-devel@lists.freedesktop.org Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Acked-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--drivers/gpu/drm/drm_modeset_lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_modeset_lock.c b/drivers/gpu/drm/drm_modeset_lock.c
index 638be2eb67b4..8a5100685875 100644
--- a/drivers/gpu/drm/drm_modeset_lock.c
+++ b/drivers/gpu/drm/drm_modeset_lock.c
@@ -70,7 +70,7 @@
70 * lists and lookup data structures. 70 * lists and lookup data structures.
71 */ 71 */
72 72
73static DEFINE_WD_CLASS(crtc_ww_class); 73static DEFINE_WW_CLASS(crtc_ww_class);
74 74
75/** 75/**
76 * drm_modeset_lock_all - take all modeset locks 76 * drm_modeset_lock_all - take all modeset locks