* Default preempt_count setting
@ 2005-02-03 15:15 Matthew Wilcox
2005-02-07 2:00 ` Matthew Wilcox
0 siblings, 1 reply; 2+ messages in thread
From: Matthew Wilcox @ 2005-02-03 15:15 UTC (permalink / raw)
To: linux-ia64
I noticed that almost every architecture has some variant of:
#define INIT_THREAD_INFO(tsk) \
[...]
.preempt_count = 1, \
except for parisc, ia64 and arm26. parisc and arm26 don't have functional
PREEMPT, so I suspect can simply be changed. How about ia64 though?
I see PREEMPT is available as an option ... should preempt_count be
initialised to 1 on ia64?
--
"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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Default preempt_count setting
2005-02-03 15:15 Default preempt_count setting Matthew Wilcox
@ 2005-02-07 2:00 ` Matthew Wilcox
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Wilcox @ 2005-02-07 2:00 UTC (permalink / raw)
To: linux-ia64
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-07 2:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-03 15:15 Default preempt_count setting Matthew Wilcox
2005-02-07 2:00 ` Matthew Wilcox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox