aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/ikglp_lock.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2013-01-18 11:13:07 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2013-01-18 11:14:15 -0500
commitcc9f46d0ce73ae30e3918999976ef587b0e8a04d (patch)
tree85c3da741b968ce8ad0f3b75daa86238cd93a054 /litmus/ikglp_lock.c
parente6b58b65441925c307f40ce5bd9d5676750f7601 (diff)
/proc hooks for locking protocols.
RSM locks only make use of /proc for now.
Diffstat (limited to 'litmus/ikglp_lock.c')
-rw-r--r--litmus/ikglp_lock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/litmus/ikglp_lock.c b/litmus/ikglp_lock.c
index a4ae74331782..aa6b659e437d 100644
--- a/litmus/ikglp_lock.c
+++ b/litmus/ikglp_lock.c
@@ -1768,6 +1768,7 @@ struct litmus_lock* ikglp_new(int m,
1768 { 1768 {
1769 return NULL; 1769 return NULL;
1770 } 1770 }
1771 memset(sem, 0, sizeof(*sem));
1771 1772
1772 sem->fifo_queues = kmalloc(sizeof(struct fifo_queue)*nr_replicas, GFP_KERNEL); 1773 sem->fifo_queues = kmalloc(sizeof(struct fifo_queue)*nr_replicas, GFP_KERNEL);
1773 if(!sem->fifo_queues) 1774 if(!sem->fifo_queues)
@@ -2484,7 +2485,7 @@ ikglp_donee_heap_node_t* gpu_ikglp_advise_donee_selection(
2484 if(temp_distance < distance || donee_node == NULL) { 2485 if(temp_distance < distance || donee_node == NULL) {
2485 int dist_from_head = IKGLP_INVAL_DISTANCE; 2486 int dist_from_head = IKGLP_INVAL_DISTANCE;
2486 2487
2487 TRACE_CUR("searching for donor on GPU %d", i); 2488 TRACE_CUR("searching for donor on GPU %d\n", i);
2488 2489
2489 // visit each queue and pick a donee. bail as soon as we find 2490 // visit each queue and pick a donee. bail as soon as we find
2490 // one for this class. 2491 // one for this class.