From: Steven Walter <trwalter@apex.net>
To: "Sarda?ons, Eliel" <Eliel.Sardanons@philips.edu.ar>
Cc: linux-kernel@vger.kernel.org
Subject: Re: kernel/sched.c questions
Date: Thu, 5 Apr 2001 15:28:59 -0500 [thread overview]
Message-ID: <20010405152859.A16443@hapablap.dyn.dhs.org> (raw)
In-Reply-To: <A0C675E9DC2CD411A5870040053AEBA028416D@MAINSERVER>
In-Reply-To: <A0C675E9DC2CD411A5870040053AEBA028416D@MAINSERVER>; from Eliel.Sardanons@philips.edu.ar on Wed, Apr 04, 2001 at 04:52:32PM -0300
On Wed, Apr 04, 2001 at 04:52:32PM -0300, Sarda?ons, Eliel wrote:
> switch (prev->state) {
> case TASK_INTERRUPTIBLE:
> if (signal_pending(prev)) {
> prev->state = TASK_RUNNING;
> break;
> }
> default:
> del_from_runqueue(prev);
> case TASK_RUNNING:
> }
I'm not sure about the other two, but this one is pretty straight
forward: its listed explicitly because we don't want tasks with
p->state TASK_RUNNING to fall into the default case, that is, getting
deleted from the runqueue. This would be bad.
--
-Steven
Freedom is the freedom to say that two plus two equals four.
prev parent reply other threads:[~2001-04-05 20:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-04 19:52 kernel/sched.c questions Sardañons, Eliel
2001-04-04 20:08 ` Tim Walberg
2001-04-04 20:20 ` Andi Kleen
2001-04-04 20:21 ` Bjorn Wesen
2001-04-04 21:22 ` Richard B. Johnson
2001-04-04 20:29 ` Stuart MacDonald
2001-04-05 20:28 ` Steven Walter [this message]
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=20010405152859.A16443@hapablap.dyn.dhs.org \
--to=trwalter@apex.net \
--cc=Eliel.Sardanons@philips.edu.ar \
--cc=linux-kernel@vger.kernel.org \
/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