From: Joe Korty <joe.korty@ccur.com>
To: rml@ximian.com, mingo@elte.hu
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] rq->curr==p not equivalent to task_running(rq,p)
Date: Tue, 13 Jan 2004 18:02:20 -0500 [thread overview]
Message-ID: <20040113230220.GA13341@tsunami.ccur.com> (raw)
task_running(rq,p) is equivalent to (rq->curr == p) only for some
architectures. Boot tested on i386.
Regards,
Joe
diff -Nua 2.6/kernel/sched.c.0 2.6/kernel/sched.c
--- 2.6/kernel/sched.c.0 2004-01-13 17:53:34.000000000 -0500
+++ 2.6/kernel/sched.c 2004-01-13 17:47:33.000000000 -0500
@@ -2062,7 +2062,7 @@
* our priority decreased, or if we are not currently running on
* this runqueue and our priority is higher than the current's
*/
- if (rq->curr == p) {
+ if (task_running(rq, p)) {
if (p->prio > oldprio)
resched_task(rq->curr);
} else if (p->prio < rq->curr->prio)
next reply other threads:[~2004-01-13 23:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-13 23:02 Joe Korty [this message]
2004-01-13 23:49 ` [PATCH] rq->curr==p not equivalent to task_running(rq,p) Robert Love
2004-01-14 8:55 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040113230220.GA13341@tsunami.ccur.com \
--to=joe.korty@ccur.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rml@ximian.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox