diff options
Diffstat (limited to 'drivers/gpu/drm/drm_lock.c')
-rw-r--r-- | drivers/gpu/drm/drm_lock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_lock.c b/drivers/gpu/drm/drm_lock.c index f6452682141b..ea1572596578 100644 --- a/drivers/gpu/drm/drm_lock.c +++ b/drivers/gpu/drm/drm_lock.c | |||
@@ -35,6 +35,7 @@ | |||
35 | 35 | ||
36 | #include <linux/export.h> | 36 | #include <linux/export.h> |
37 | #include <drm/drmP.h> | 37 | #include <drm/drmP.h> |
38 | #include "drm_legacy.h" | ||
38 | 39 | ||
39 | static int drm_notifier(void *priv); | 40 | static int drm_notifier(void *priv); |
40 | 41 | ||
@@ -111,7 +112,7 @@ int drm_lock(struct drm_device *dev, void *data, struct drm_file *file_priv) | |||
111 | /* don't set the block all signals on the master process for now | 112 | /* don't set the block all signals on the master process for now |
112 | * really probably not the correct answer but lets us debug xkb | 113 | * really probably not the correct answer but lets us debug xkb |
113 | * xserver for now */ | 114 | * xserver for now */ |
114 | if (!file_priv->is_master) { | 115 | if (!drm_is_master(file_priv)) { |
115 | sigemptyset(&dev->sigmask); | 116 | sigemptyset(&dev->sigmask); |
116 | sigaddset(&dev->sigmask, SIGSTOP); | 117 | sigaddset(&dev->sigmask, SIGSTOP); |
117 | sigaddset(&dev->sigmask, SIGTSTP); | 118 | sigaddset(&dev->sigmask, SIGTSTP); |