| .. | .. |
|---|
| 39 | 39 | } |
|---|
| 40 | 40 | extern void rt_mutex_setprio(struct task_struct *p, struct task_struct *pi_task); |
|---|
| 41 | 41 | extern void rt_mutex_adjust_pi(struct task_struct *p); |
|---|
| 42 | +static inline bool tsk_is_pi_blocked(struct task_struct *tsk) |
|---|
| 43 | +{ |
|---|
| 44 | + return tsk->pi_blocked_on != NULL; |
|---|
| 45 | +} |
|---|
| 42 | 46 | #else |
|---|
| 43 | 47 | static inline struct task_struct *rt_mutex_get_top_task(struct task_struct *task) |
|---|
| 44 | 48 | { |
|---|
| 45 | 49 | return NULL; |
|---|
| 46 | 50 | } |
|---|
| 47 | 51 | # define rt_mutex_adjust_pi(p) do { } while (0) |
|---|
| 52 | +static inline bool tsk_is_pi_blocked(struct task_struct *tsk) |
|---|
| 53 | +{ |
|---|
| 54 | + return false; |
|---|
| 55 | +} |
|---|
| 48 | 56 | #endif |
|---|
| 49 | 57 | |
|---|
| 50 | 58 | extern void normalize_rt_tasks(void); |
|---|