aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/ikglp_lock.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2013-01-28 22:34:45 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2013-01-28 22:34:45 -0500
commit81d359de0cd48b41750d5fd7b554fa6b1fcfee88 (patch)
treef88a922297971580a02e4b83f6b81f79b8952380 /litmus/ikglp_lock.c
parentcc6a4b90595a566fbd9fcaf8a9399e35f0a7ef93 (diff)
part. gpu hack and fixed dumb ikglp bug
IKGLP wasn't being passed the right value for 'm' in C-EDF. It went undected for so long since m < k in our GPUSync experiments.
Diffstat (limited to 'litmus/ikglp_lock.c')
-rw-r--r--litmus/ikglp_lock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/litmus/ikglp_lock.c b/litmus/ikglp_lock.c
index e78a4ec0dff6..57be5db5f1be 100644
--- a/litmus/ikglp_lock.c
+++ b/litmus/ikglp_lock.c
@@ -1771,6 +1771,8 @@ struct litmus_lock* ikglp_new(int m,
1771 int nr_replicas = 0; 1771 int nr_replicas = 0;
1772 int i; 1772 int i;
1773 1773
1774 BUG_ON(m <= 0);
1775
1774 if(!access_ok(VERIFY_READ, arg, sizeof(nr_replicas))) 1776 if(!access_ok(VERIFY_READ, arg, sizeof(nr_replicas)))
1775 { 1777 {
1776 return(NULL); 1778 return(NULL);