Re: Default preempt_count setting

From: Matthew Wilcox <>
Date: 2005-02-07 13:00:08
On Mon, Feb 07, 2005 at 11:48:11AM +1100, Peter Chubb wrote:
> >>>>> "Matthew" == Matthew Wilcox <> 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
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Sun Feb 6 21:00:20 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:35 EST