diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 3e6e669db92b..ade13badfacc 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -126,6 +126,7 @@ struct sched_attr { | |||
126 | }; | 126 | }; |
127 | 127 | ||
128 | #include <litmus/rt_param.h> | 128 | #include <litmus/rt_param.h> |
129 | #include <litmus/preempt.h> | ||
129 | 130 | ||
130 | struct futex_pi_state; | 131 | struct futex_pi_state; |
131 | struct robust_list_head; | 132 | struct robust_list_head; |
@@ -2784,6 +2785,7 @@ static inline int test_tsk_thread_flag(struct task_struct *tsk, int flag) | |||
2784 | static inline void set_tsk_need_resched(struct task_struct *tsk) | 2785 | static inline void set_tsk_need_resched(struct task_struct *tsk) |
2785 | { | 2786 | { |
2786 | set_tsk_thread_flag(tsk,TIF_NEED_RESCHED); | 2787 | set_tsk_thread_flag(tsk,TIF_NEED_RESCHED); |
2788 | sched_state_will_schedule(tsk); | ||
2787 | } | 2789 | } |
2788 | 2790 | ||
2789 | static inline void clear_tsk_need_resched(struct task_struct *tsk) | 2791 | static inline void clear_tsk_need_resched(struct task_struct *tsk) |