From: Matthew Wilcox <matthew@wil.cx>
To: linux-ia64@vger.kernel.org
Subject: Re: Default preempt_count setting
Date: Mon, 07 Feb 2005 02:00:08 +0000 [thread overview]
Message-ID: <20050207020008.GV20386@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20050203151501.GC20386@parcelfarce.linux.theplanet.co.uk>
On Mon, Feb 07, 2005 at 11:48:11AM +1100, Peter Chubb wrote:
> >>>>> "Matthew" = Matthew Wilcox <matthew@wil.cx> writes:
> Matthew> #define INIT_THREAD_INFO(tsk) \ [...] .preempt_count = 1, \
>
> It doesn't matter: new processes have preempt_count set to one in
> sched_fork() (they don't inherit the value) which then drops to zero
> when they're first run. So init_task's preempt count will be set to one
> when the task is created.
But init_task isn't created by copy_process(), it's statically initialised
in arch/ia64/kernel/init_task.c. Based on that, I'd say we do need it to
change ...
--
"Next the statesmen will invent cheap lies, putting the blame upon
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince
himself that the war is just, and will thank God for the better sleep
he enjoys after this process of grotesque self-deception." -- Mark Twain
prev parent reply other threads:[~2005-02-07 2:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-03 15:15 Default preempt_count setting Matthew Wilcox
2005-02-07 2:00 ` Matthew Wilcox [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=20050207020008.GV20386@parcelfarce.linux.theplanet.co.uk \
--to=matthew@wil.cx \
--cc=linux-ia64@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