summaryrefslogtreecommitdiffstats
path: root/rtmutex-remove-double-xchg.patch
blob: 0c7fb2d810d9e6bbc04406e13c7e6f3603616af9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From b5dd71e84e09d10784fcc6e091cd1625413075b0 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