On Mon, Feb 07, 2005 at 11:48:11AM +1100, Peter Chubb wrote: > >>>>> "Matthew" == Matthew Wilcox <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
