diff options
Diffstat (limited to 'litmus/ikglp_lock.c')
-rw-r--r-- | litmus/ikglp_lock.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/litmus/ikglp_lock.c b/litmus/ikglp_lock.c index 3d79e41b42df..3fd760799a75 100644 --- a/litmus/ikglp_lock.c +++ b/litmus/ikglp_lock.c | |||
@@ -1401,7 +1401,9 @@ int ikglp_unlock(struct litmus_lock* l) | |||
1401 | struct nested_info, hp_binheap_node); | 1401 | struct nested_info, hp_binheap_node); |
1402 | ++count; | 1402 | ++count; |
1403 | } | 1403 | } |
1404 | litmus->decrease_prio(t, NULL); | 1404 | if (count) { |
1405 | litmus->decrease_prio(t, NULL); | ||
1406 | } | ||
1405 | WARN_ON(count > 2); // should not be greater than 2. only local fq inh and donation can be possible. | 1407 | WARN_ON(count > 2); // should not be greater than 2. only local fq inh and donation can be possible. |
1406 | } | 1408 | } |
1407 | raw_spin_unlock(&tsk_rt(t)->hp_blocked_tasks_lock); | 1409 | raw_spin_unlock(&tsk_rt(t)->hp_blocked_tasks_lock); |