From b5dd71e84e09d10784fcc6e091cd1625413075b0 Mon Sep 17 00:00:00 2001 From: Steven Rostedt 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 Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner Signed-off-by: Paul Gortmaker --- 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