X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Frtmutex.c;h=0dd6aec1cb6ad8bb41a44ba74f770ca4439fc022;hb=81dabb464139324c005159f5afba377104d8828d;hp=1e09308bf2a1e5f46c3f68d02bc4bcb346b42ec5;hpb=96d8683483b7eb194609edd1afe9143a0467b7d3;p=karo-tx-linux.git diff --git a/kernel/rtmutex.c b/kernel/rtmutex.c index 1e09308bf2a1..0dd6aec1cb6a 100644 --- a/kernel/rtmutex.c +++ b/kernel/rtmutex.c @@ -145,6 +145,19 @@ int max_lock_depth = 1024; /* * Adjust the priority chain. Also used for deadlock detection. * Decreases task's usage by one - may thus free the task. + * + * @task: the task owning the mutex (owner) for which a chain walk is probably + * needed + * @deadlock_detect: do we have to carry out deadlock detection? + * @orig_lock: the mutex (can be NULL if we are walking the chain to recheck + * things for a task that has just got its priority adjusted, and + * is waiting on a mutex) + * @orig_waiter: rt_mutex_waiter struct for the task that has just donated + * its priority to the mutex owner (can be NULL in the case + * depicted above or if the top waiter is gone away and we are + * actually deboosting the owner) + * @top_task: the current top waiter + * * Returns 0 or -EDEADLK. */ static int rt_mutex_adjust_prio_chain(struct task_struct *task,