aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h8
-rw-r--r--include/linux/sched/rt.h5
2 files changed, 12 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 9ea15019a5b6..13c53a99920f 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1124,8 +1124,12 @@ struct sched_dl_entity {
1124 * @dl_new tells if a new instance arrived. If so we must 1124 * @dl_new tells if a new instance arrived. If so we must
1125 * start executing it with full runtime and reset its absolute 1125 * start executing it with full runtime and reset its absolute
1126 * deadline; 1126 * deadline;
1127 *
1128 * @dl_boosted tells if we are boosted due to DI. If so we are
1129 * outside bandwidth enforcement mechanism (but only until we
1130 * exit the critical section).
1127 */ 1131 */
1128 int dl_throttled, dl_new; 1132 int dl_throttled, dl_new, dl_boosted;
1129 1133
1130 /* 1134 /*
1131 * Bandwidth enforcement timer. Each -deadline task has its 1135 * Bandwidth enforcement timer. Each -deadline task has its
@@ -1359,6 +1363,8 @@ struct task_struct {
1359 struct rb_node *pi_waiters_leftmost; 1363 struct rb_node *pi_waiters_leftmost;
1360 /* Deadlock detection and priority inheritance handling */ 1364 /* Deadlock detection and priority inheritance handling */
1361 struct rt_mutex_waiter *pi_blocked_on; 1365 struct rt_mutex_waiter *pi_blocked_on;
1366 /* Top pi_waiters task */
1367 struct task_struct *pi_top_task;
1362#endif 1368#endif
1363 1369
1364#ifdef CONFIG_DEBUG_MUTEXES 1370#ifdef CONFIG_DEBUG_MUTEXES
diff --git a/include/linux/sched/rt.h b/include/linux/sched/rt.h
index 440434df3627..34e4ebea8fce 100644
--- a/include/linux/sched/rt.h
+++ b/include/linux/sched/rt.h
@@ -35,6 +35,7 @@ static inline int rt_task(struct task_struct *p)
35#ifdef CONFIG_RT_MUTEXES 35#ifdef CONFIG_RT_MUTEXES
36extern int rt_mutex_getprio(struct task_struct *p); 36extern int rt_mutex_getprio(struct task_struct *p);
37extern void rt_mutex_setprio(struct task_struct *p, int prio); 37extern void rt_mutex_setprio(struct task_struct *p, int prio);
38extern struct task_struct *rt_mutex_get_top_task(struct task_struct *task);
38extern void rt_mutex_adjust_pi(struct task_struct *p); 39extern void rt_mutex_adjust_pi(struct task_struct *p);
39static inline bool tsk_is_pi_blocked(struct task_struct *tsk) 40static inline bool tsk_is_pi_blocked(struct task_struct *tsk)
40{ 41{
@@ -45,6 +46,10 @@ static inline int rt_mutex_getprio(struct task_struct *p)
45{ 46{
46 return p->normal_prio; 47 return p->normal_prio;
47} 48}
49static inline struct task_struct *rt_mutex_get_top_task(struct task_struct *task)
50{
51 return NULL;
52}
48# define rt_mutex_adjust_pi(p) do { } while (0) 53# define rt_mutex_adjust_pi(p) do { } while (0)
49static inline bool tsk_is_pi_blocked(struct task_struct *tsk) 54static inline bool tsk_is_pi_blocked(struct task_struct *tsk)
50{ 55{