summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/msm/msm_drv.c
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>2021-06-07 12:44:41 +0200
committerRob Clark <robdclark@chromium.org>2021-06-23 07:33:55 -0700
commit1d2fa58e0dda3344999cad9b195eb539310ad093 (patch)
treef54a1d9b7014186b38426b9c5f7b37488969b54f /drivers/gpu/drm/msm/msm_drv.c
parentf6d62d091cfd1c307a1bb83ef46d334d9ac27751 (diff)
downloadlwn-1d2fa58e0dda3344999cad9b195eb539310ad093.tar.gz
lwn-1d2fa58e0dda3344999cad9b195eb539310ad093.zip
drm/msm: export hangcheck_period in debugfs
While keeping the previous default value for hangcheck period, we allow now the possibility of configuring its value via debugfs. Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Link: https://lore.kernel.org/r/20210607104441.184700-1-siglesias@igalia.com Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_drv.c')
-rw-r--r--drivers/gpu/drm/msm/msm_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c
index 12d264196421..9b8fa2ad0d84 100644
--- a/drivers/gpu/drm/msm/msm_drv.c
+++ b/drivers/gpu/drm/msm/msm_drv.c
@@ -459,6 +459,7 @@ static int msm_drm_init(struct device *dev, const struct drm_driver *drv)
mdss = priv->mdss;
priv->wq = alloc_ordered_workqueue("msm", 0);
+ priv->hangcheck_period = DRM_MSM_HANGCHECK_DEFAULT_PERIOD;
INIT_LIST_HEAD(&priv->objects);
mutex_init(&priv->obj_lock);