diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2013-02-07 13:07:48 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2013-02-07 13:07:48 -0500 |
commit | 955683d320ad8d3ce232693e8870b134006c7771 (patch) | |
tree | 82dbf7baef945595a3eee28985ec5f94e07f9125 /litmus/sched_cedf.c | |
parent | 9aacc135e0abe206b7d778af937babaaa7f3c199 (diff) |
Rename RSM Mutex to FIFO Mutex
Diffstat (limited to 'litmus/sched_cedf.c')
-rw-r--r-- | litmus/sched_cedf.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/litmus/sched_cedf.c b/litmus/sched_cedf.c index e2737bafa9b8..2246e9b8754e 100644 --- a/litmus/sched_cedf.c +++ b/litmus/sched_cedf.c | |||
@@ -51,7 +51,7 @@ | |||
51 | #endif | 51 | #endif |
52 | 52 | ||
53 | #ifdef CONFIG_LITMUS_NESTED_LOCKING | 53 | #ifdef CONFIG_LITMUS_NESTED_LOCKING |
54 | #include <litmus/rsm_lock.h> | 54 | #include <litmus/fifo_lock.h> |
55 | #include <litmus/ikglp_lock.h> | 55 | #include <litmus/ikglp_lock.h> |
56 | #endif | 56 | #endif |
57 | 57 | ||
@@ -1523,27 +1523,27 @@ static void nested_decrease_priority_inheritance(struct task_struct* t, | |||
1523 | } | 1523 | } |
1524 | 1524 | ||
1525 | 1525 | ||
1526 | /* ******************** RSM MUTEX ********************** */ | 1526 | /* ******************** FIFO MUTEX ********************** */ |
1527 | 1527 | ||
1528 | static struct litmus_lock_ops cedf_rsm_mutex_lock_ops = { | 1528 | static struct litmus_lock_ops cedf_fifo_mutex_lock_ops = { |
1529 | .lock = rsm_mutex_lock, | 1529 | .lock = fifo_mutex_lock, |
1530 | .unlock = rsm_mutex_unlock, | 1530 | .unlock = fifo_mutex_unlock, |
1531 | .close = rsm_mutex_close, | 1531 | .close = fifo_mutex_close, |
1532 | .deallocate = rsm_mutex_free, | 1532 | .deallocate = fifo_mutex_free, |
1533 | 1533 | ||
1534 | .propagate_increase_inheritance = rsm_mutex_propagate_increase_inheritance, | 1534 | .propagate_increase_inheritance = fifo_mutex_propagate_increase_inheritance, |
1535 | .propagate_decrease_inheritance = rsm_mutex_propagate_decrease_inheritance, | 1535 | .propagate_decrease_inheritance = fifo_mutex_propagate_decrease_inheritance, |
1536 | 1536 | ||
1537 | #ifdef CONFIG_LITMUS_DGL_SUPPORT | 1537 | #ifdef CONFIG_LITMUS_DGL_SUPPORT |
1538 | .dgl_lock = rsm_mutex_dgl_lock, | 1538 | .dgl_lock = fifo_mutex_dgl_lock, |
1539 | .is_owner = rsm_mutex_is_owner, | 1539 | .is_owner = fifo_mutex_is_owner, |
1540 | .enable_priority = rsm_mutex_enable_priority, | 1540 | .enable_priority = fifo_mutex_enable_priority, |
1541 | #endif | 1541 | #endif |
1542 | }; | 1542 | }; |
1543 | 1543 | ||
1544 | static struct litmus_lock* cedf_new_rsm_mutex(void) | 1544 | static struct litmus_lock* cedf_new_fifo_mutex(void) |
1545 | { | 1545 | { |
1546 | return rsm_mutex_new(&cedf_rsm_mutex_lock_ops); | 1546 | return fifo_mutex_new(&cedf_fifo_mutex_lock_ops); |
1547 | } | 1547 | } |
1548 | 1548 | ||
1549 | /* ******************** IKGLP ********************** */ | 1549 | /* ******************** IKGLP ********************** */ |
@@ -1599,8 +1599,8 @@ static long cedf_allocate_lock(struct litmus_lock **lock, int type, | |||
1599 | 1599 | ||
1600 | switch (type) { | 1600 | switch (type) { |
1601 | #ifdef CONFIG_LITMUS_NESTED_LOCKING | 1601 | #ifdef CONFIG_LITMUS_NESTED_LOCKING |
1602 | case RSM_MUTEX: | 1602 | case FIFO_MUTEX: |
1603 | *lock = cedf_new_rsm_mutex(); | 1603 | *lock = cedf_new_fifo_mutex(); |
1604 | break; | 1604 | break; |
1605 | 1605 | ||
1606 | case IKGLP_SEM: | 1606 | case IKGLP_SEM: |