projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c53b43
)
sched: Fix need_resched() when checking peempt
author
Hillf Danton
<
[email protected]
>
Tue, 14 Jun 2011 22:36:24 +0000
(18:36 -0400)
committer
Ingo Molnar
<
[email protected]
>
Wed, 15 Jun 2011 07:50:32 +0000
(09:50 +0200)
The RT preempt check tests the wrong task if NEED_RESCHED is
set. It currently checks the local CPU task. It is supposed to
check the task that is running on the runqueue we are about to
wake another task on.
Signed-off-by: Hillf Danton <
[email protected]
>
Reviewed-by: Yong Zhang <
[email protected]
>
Signed-off-by: Steven Rostedt <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
kernel/sched_rt.c
patch
|
blob
|
history
diff --git
a/kernel/sched_rt.c
b/kernel/sched_rt.c
index 88725c939e0b8000253905332db8725507781f48..9b8d5dce946e6babc05d20ce139e09c7403b620a 100644
(file)
--- a/
kernel/sched_rt.c
+++ b/
kernel/sched_rt.c
@@
-1096,7
+1096,7
@@
static void check_preempt_curr_rt(struct rq *rq, struct task_struct *p, int flag
* to move current somewhere else, making room for our non-migratable
* task.
*/
- if (p->prio == rq->curr->prio && !
need_resched(
))
+ if (p->prio == rq->curr->prio && !
test_tsk_need_resched(rq->curr
))
check_preempt_equal_prio(rq, p);
#endif
}