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