aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2007-02-22 09:59:18 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2007-02-22 09:59:18 -0500
commitf0d0e0687fb9fd065d6b9d22ca6ddfd2f384b58b (patch)
treeea78bf55a30c396e8ade8a619883a77f9a31b587 /kernel
parent8f5bf0fb6f9710dead8a9af2fb94c8119a1e4ede (diff)
use same variable as standard Linux for checking task state
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 308e624b43..aa4a9e9426 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1846,7 +1846,7 @@ static inline void finish_task_switch(struct rq *rq, struct task_struct *prev)
1846 /* Requeue previous real-time task before we drop the rq lock, cause 1846 /* Requeue previous real-time task before we drop the rq lock, cause
1847 * that may lead to a preemption. 1847 * that may lead to a preemption.
1848 */ 1848 */
1849 if (is_realtime(prev) && is_running(prev)) 1849 if (is_realtime(prev) && prev_state == TASK_RUNNING)
1850 curr_sched_plugin->finish_switch(prev); 1850 curr_sched_plugin->finish_switch(prev);
1851 sched_trace_task_scheduled(current); 1851 sched_trace_task_scheduled(current);
1852 finish_lock_switch(rq, prev); 1852 finish_lock_switch(rq, prev);