blob: 70d15d0fa387ce0cc41eb0e820674fe1739f8b2a [file] [log] [blame]
From 39ed7c2af1b1280ce4b400684185ca19403ef769 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>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
kernel/rtmutex.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
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.0.4