hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/include/linux/sched/rt.h
....@@ -39,12 +39,20 @@
3939 }
4040 extern void rt_mutex_setprio(struct task_struct *p, struct task_struct *pi_task);
4141 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
+}
4246 #else
4347 static inline struct task_struct *rt_mutex_get_top_task(struct task_struct *task)
4448 {
4549 return NULL;
4650 }
4751 # 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
+}
4856 #endif
4957
5058 extern void normalize_rt_tasks(void);