aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--litmus/sched_pfp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/litmus/sched_pfp.c b/litmus/sched_pfp.c
index 65f460489aa8..29f1efdcffc6 100644
--- a/litmus/sched_pfp.c
+++ b/litmus/sched_pfp.c
@@ -648,6 +648,8 @@ static void mpcp_vspin_enter(void)
648 648
649 __add_wait_queue_prio_exclusive(vspin, &wait); 649 __add_wait_queue_prio_exclusive(vspin, &wait);
650 650
651 TS_LOCK_SUSPEND;
652
651 spin_unlock_irqrestore(&vspin->lock, flags); 653 spin_unlock_irqrestore(&vspin->lock, flags);
652 654
653 preempt_enable_no_resched(); 655 preempt_enable_no_resched();
@@ -656,6 +658,8 @@ static void mpcp_vspin_enter(void)
656 658
657 preempt_disable(); 659 preempt_disable();
658 660
661 TS_LOCK_RESUME;
662
659 /* ok, now it is ours */ 663 /* ok, now it is ours */
660 BUG_ON(__get_cpu_var(mpcpvs_vspin) != t); 664 BUG_ON(__get_cpu_var(mpcpvs_vspin) != t);
661 } 665 }