diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-06-25 01:30:56 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-08-07 03:46:51 -0400 |
commit | 15a3dd60f0dc56db35d3335e7ea0ea8ab67eedfb (patch) | |
tree | f34e044fe45e8832891486c822c3eae4bcfd0ca5 /include | |
parent | 8f88280b7201efb67751b904728d7c8ed9786f93 (diff) |
Integrate preemption state machine with Linux scheduler
Track when a processor is going to schedule "soon".
Diffstat (limited to 'include')
-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 706299238695..767816b6ca5a 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -56,6 +56,7 @@ struct sched_param { | |||
56 | #include <asm/processor.h> | 56 | #include <asm/processor.h> |
57 | 57 | ||
58 | #include <litmus/rt_param.h> | 58 | #include <litmus/rt_param.h> |
59 | #include <litmus/preempt.h> | ||
59 | 60 | ||
60 | struct exec_domain; | 61 | struct exec_domain; |
61 | struct futex_pi_state; | 62 | struct futex_pi_state; |
@@ -2371,6 +2372,7 @@ static inline int test_tsk_thread_flag(struct task_struct *tsk, int flag) | |||
2371 | static inline void set_tsk_need_resched(struct task_struct *tsk) | 2372 | static inline void set_tsk_need_resched(struct task_struct *tsk) |
2372 | { | 2373 | { |
2373 | set_tsk_thread_flag(tsk,TIF_NEED_RESCHED); | 2374 | set_tsk_thread_flag(tsk,TIF_NEED_RESCHED); |
2375 | sched_state_will_schedule(tsk); | ||
2374 | } | 2376 | } |
2375 | 2377 | ||
2376 | static inline void clear_tsk_need_resched(struct task_struct *tsk) | 2378 | static inline void clear_tsk_need_resched(struct task_struct *tsk) |