|
@@ -40,7 +40,7 @@ static bool mutex_is_locked_by(struct mutex *mutex, struct task_struct *task)
|
|
if (!mutex_is_locked(mutex))
|
|
if (!mutex_is_locked(mutex))
|
|
return false;
|
|
return false;
|
|
|
|
|
|
-#if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_MUTEXES)
|
|
|
|
|
|
+#if defined(CONFIG_DEBUG_MUTEXES) || defined(CONFIG_MUTEX_SPIN_ON_OWNER)
|
|
return mutex->owner == task;
|
|
return mutex->owner == task;
|
|
#else
|
|
#else
|
|
/* Since UP may be pre-empted, we cannot assume that we own the lock */
|
|
/* Since UP may be pre-empted, we cannot assume that we own the lock */
|