diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 67a1d86981a9..0a1b09305248 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -32,6 +32,9 @@ | |||
32 | #include <linux/posix-timers.h> | 32 | #include <linux/posix-timers.h> |
33 | #include <linux/rseq.h> | 33 | #include <linux/rseq.h> |
34 | 34 | ||
35 | #include <litmus/rt_param.h> | ||
36 | #include <litmus/preempt.h> | ||
37 | |||
35 | /* task_struct member predeclarations (sorted alphabetically): */ | 38 | /* task_struct member predeclarations (sorted alphabetically): */ |
36 | struct audit_context; | 39 | struct audit_context; |
37 | struct backing_dev_info; | 40 | struct backing_dev_info; |
@@ -61,6 +64,8 @@ struct signal_struct; | |||
61 | struct task_delay_info; | 64 | struct task_delay_info; |
62 | struct task_group; | 65 | struct task_group; |
63 | 66 | ||
67 | struct od_table_entry; | ||
68 | |||
64 | /* | 69 | /* |
65 | * Task state bitmask. NOTE! These bits are also | 70 | * Task state bitmask. NOTE! These bits are also |
66 | * encoded in fs/proc/array.c: get_task_state(). | 71 | * encoded in fs/proc/array.c: get_task_state(). |
@@ -1158,6 +1163,10 @@ struct task_struct { | |||
1158 | /* Start of a write-and-pause period: */ | 1163 | /* Start of a write-and-pause period: */ |
1159 | unsigned long dirty_paused_when; | 1164 | unsigned long dirty_paused_when; |
1160 | 1165 | ||
1166 | /* LITMUS RT parameters and state */ | ||
1167 | struct rt_param rt_param; | ||
1168 | struct od_table_entry *od_table; | ||
1169 | |||
1161 | #ifdef CONFIG_LATENCYTOP | 1170 | #ifdef CONFIG_LATENCYTOP |
1162 | int latency_record_count; | 1171 | int latency_record_count; |
1163 | struct latency_record latency_record[LT_SAVECOUNT]; | 1172 | struct latency_record latency_record[LT_SAVECOUNT]; |
@@ -1741,6 +1750,7 @@ static inline int test_tsk_thread_flag(struct task_struct *tsk, int flag) | |||
1741 | static inline void set_tsk_need_resched(struct task_struct *tsk) | 1750 | static inline void set_tsk_need_resched(struct task_struct *tsk) |
1742 | { | 1751 | { |
1743 | set_tsk_thread_flag(tsk,TIF_NEED_RESCHED); | 1752 | set_tsk_thread_flag(tsk,TIF_NEED_RESCHED); |
1753 | sched_state_will_schedule(tsk); | ||
1744 | } | 1754 | } |
1745 | 1755 | ||
1746 | static inline void clear_tsk_need_resched(struct task_struct *tsk) | 1756 | static inline void clear_tsk_need_resched(struct task_struct *tsk) |