Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[deliverable/linux.git] / kernel / rtmutex.c
index 5e8d9cce7470dad6fd2427fd6c2349ddea6aeb9e..a242e691c993038f35ace870d245487d44b5bc16 100644 (file)
@@ -11,7 +11,7 @@
  *  See Documentation/rt-mutex-design.txt for details.
  */
 #include <linux/spinlock.h>
-#include <linux/module.h>
+#include <linux/export.h>
 #include <linux/sched.h>
 #include <linux/timer.h>
 
@@ -579,7 +579,6 @@ __rt_mutex_slowlock(struct rt_mutex *lock, int state,
                    struct rt_mutex_waiter *waiter)
 {
        int ret = 0;
-       int was_disabled;
 
        for (;;) {
                /* Try to acquire the lock: */
@@ -602,17 +601,10 @@ __rt_mutex_slowlock(struct rt_mutex *lock, int state,
 
                raw_spin_unlock(&lock->wait_lock);
 
-               was_disabled = irqs_disabled();
-               if (was_disabled)
-                       local_irq_enable();
-
                debug_rt_mutex_print_deadlock(waiter);
 
                schedule_rt_mutex(lock);
 
-               if (was_disabled)
-                       local_irq_disable();
-
                raw_spin_lock(&lock->wait_lock);
                set_current_state(state);
        }
This page took 0.026589 seconds and 5 git commands to generate.