aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/locking.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-04-18 16:24:56 -0400
committerGlenn Elliott <gelliott@cs.unc.edu>2012-04-18 16:24:56 -0400
commit6ab36ca992441f7353840c70fc91d99a500a940e (patch)
treef7b89f379a04a681a80eee32f86a2405b162616f /litmus/locking.c
parent440aa2083245b81583980e3f4177f3b4cc805556 (diff)
Fixed and tested aff-aware KFMLP. (finally!)
Diffstat (limited to 'litmus/locking.c')
-rw-r--r--litmus/locking.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/litmus/locking.c b/litmus/locking.c
index ef13062913ce..fd3c7260319f 100644
--- a/litmus/locking.c
+++ b/litmus/locking.c
@@ -52,7 +52,10 @@ static int create_generic_lock(void** obj_ref, obj_type_t type, void* __user ar
52 lock->nest.hp_waiter_eff_prio = NULL; 52 lock->nest.hp_waiter_eff_prio = NULL;
53 53
54 INIT_BINHEAP_NODE(&lock->nest.hp_binheap_node); 54 INIT_BINHEAP_NODE(&lock->nest.hp_binheap_node);
55 WARN_ON(!(lock->nest.hp_waiter_ptr)); 55 if(!lock->nest.hp_waiter_ptr) {
56 TRACE_CUR("BEWARE: hp_waiter_ptr should probably not be NULL in "
57 "most uses. (exception: IKGLP donors)\n");
58 }
56#endif 59#endif
57 lock->type = type; 60 lock->type = type;
58 lock->ident = atomic_inc_return(&lock_id_gen); 61 lock->ident = atomic_inc_return(&lock_id_gen);