blob: 265cb2810967eb5cb64cfe3e4a6d4bdf7cb3363a [file] [log] [blame]
From b204c1ae83666bc29aceb615202cb8000e08f0d7 Mon Sep 17 00:00:00 2001
From: Steven Rostedt <srostedt@redhat.com>
Date: Fri, 3 Jul 2009 08:44:20 -0500
Subject: [PATCH] rtmutex: remove double xchg
commit 4829d08644d66712666d0614d3c670304534f67e in tip.
No reason to update current if we are running. We'll do that when we exit
the loop.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
diff --git a/kernel/rtmutex.c b/kernel/rtmutex.c
index 543e43c..1f12a75 100644
--- a/kernel/rtmutex.c
+++ b/kernel/rtmutex.c
@@ -736,8 +736,6 @@ rt_spin_lock_slowlock(struct rt_mutex *lock)
update_current(TASK_UNINTERRUPTIBLE, &saved_state);
if (waiter.task)
schedule_rt_mutex(lock);
- else
- update_current(TASK_RUNNING_MUTEX, &saved_state);
raw_spin_lock_irqsave(&lock->wait_lock, flags);
current->lock_depth = saved_lock_depth;
--
1.7.1.1