aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2011-07-25 12:46:56 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2011-07-25 12:46:56 -0400
commit70a103e9dd0e160e97c7bf0dc55f94caa6ff5ffe (patch)
treec2ac2b12b25b1f38b677c63f61adb3b3e7e8420e
parenta55f6ec8f509ddecaeb153d16065ab256bb8086a (diff)
fixup: trace suspension in MPCP_VS wait
-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 }