aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/edf_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/edf_common.c')
-rw-r--r--litmus/edf_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/litmus/edf_common.c b/litmus/edf_common.c
index 7a3a9a02a703..f275610bf052 100644
--- a/litmus/edf_common.c
+++ b/litmus/edf_common.c
@@ -111,8 +111,8 @@ int edf_higher_prio(struct task_struct* first, struct task_struct* second)
111 111
112int edf_max_heap_order(struct binheap_node *a, struct binheap_node *b) 112int edf_max_heap_order(struct binheap_node *a, struct binheap_node *b)
113{ 113{
114 struct litmus_lock *l_a = (struct litmus_lock *)binheap_entry(a, struct litmus_lock, hp_binheap_node); 114 struct nested_info *l_a = (struct nested_info *)binheap_entry(a, struct nested_info, hp_binheap_node);
115 struct litmus_lock *l_b = (struct litmus_lock *)binheap_entry(b, struct litmus_lock, hp_binheap_node); 115 struct nested_info *l_b = (struct nested_info *)binheap_entry(b, struct nested_info, hp_binheap_node);
116 116
117 return __edf_higher_prio(l_a->hp_waiter_eff_prio, INHERITED, l_b->hp_waiter_eff_prio, INHERITED); 117 return __edf_higher_prio(l_a->hp_waiter_eff_prio, INHERITED, l_b->hp_waiter_eff_prio, INHERITED);
118} 118}
@@ -124,8 +124,8 @@ int edf_min_heap_order(struct binheap_node *a, struct binheap_node *b)
124 124
125int edf_max_heap_base_priority_order(struct binheap_node *a, struct binheap_node *b) 125int edf_max_heap_base_priority_order(struct binheap_node *a, struct binheap_node *b)
126{ 126{
127 struct litmus_lock *l_a = (struct litmus_lock *)binheap_entry(a, struct litmus_lock, hp_binheap_node); 127 struct nested_info *l_a = (struct nested_info *)binheap_entry(a, struct nested_info, hp_binheap_node);
128 struct litmus_lock *l_b = (struct litmus_lock *)binheap_entry(b, struct litmus_lock, hp_binheap_node); 128 struct nested_info *l_b = (struct nested_info *)binheap_entry(b, struct nested_info, hp_binheap_node);
129 129
130 return __edf_higher_prio(l_a->hp_waiter_eff_prio, BASE, l_b->hp_waiter_eff_prio, BASE); 130 return __edf_higher_prio(l_a->hp_waiter_eff_prio, BASE, l_b->hp_waiter_eff_prio, BASE);
131} 131}