]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - drivers/gpu/drm/msm/msm_gem_shrinker.c
Apply preempt_rt patch-4.9-rt1.patch.xz
[zynq/linux.git] / drivers / gpu / drm / msm / msm_gem_shrinker.c
index 192b2d3a79cb221e4b067b5b153d3a913edd6ffc..d5372a2073262b5d7efa084968497cc328ee752d 100644 (file)
@@ -23,7 +23,7 @@ static bool mutex_is_locked_by(struct mutex *mutex, struct task_struct *task)
        if (!mutex_is_locked(mutex))
                return false;
 
-#if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_MUTEXES)
+#if (defined(CONFIG_SMP) || defined(CONFIG_DEBUG_MUTEXES)) && !defined(CONFIG_PREEMPT_RT_BASE)
        return mutex->owner == task;
 #else
        /* Since UP may be pre-empted, we cannot assume that we own the lock */