From 15a3dd60f0dc56db35d3335e7ea0ea8ab67eedfb Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Tue, 25 Jun 2013 07:30:56 +0200 Subject: Integrate preemption state machine with Linux scheduler Track when a processor is going to schedule "soon". --- include/linux/sched.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/linux') 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 { #include #include +#include struct exec_domain; struct futex_pi_state; @@ -2371,6 +2372,7 @@ static inline int test_tsk_thread_flag(struct task_struct *tsk, int flag) static inline void set_tsk_need_resched(struct task_struct *tsk) { set_tsk_thread_flag(tsk,TIF_NEED_RESCHED); + sched_state_will_schedule(tsk); } static inline void clear_tsk_need_resched(struct task_struct *tsk) -- cgit v1.2.2