Re: 2.6.8-rc4-mm1

William Lee Irwin III
2004-08-10T22:46:15Z

On Tue, Aug 10, 2004 at 03:30:06PM -0700, William Lee Irwin III wrote:
>> +task_t * __init __fork_idle(int cpu, struct pt_regs *regs)
>> +{
>> + task_t *task = copy_process(CLONE_VM, 0, regs, 0, NULL, NULL, 0);
>> if (!task)
>> return ERR_PTR(-ENOMEM);
>> init_idle(task, cpu);

On Tue, Aug 10, 2004 at 03:43:08PM -0700, William Lee Irwin III wrote:
> This still doesn't eliminate the branch in ia64's copy_thread().
> The best solution possible would be to redo the whole affair as an
> ia64-specific cleanup pass, and to find some initial setting of regs
> that works for all architectures (it seems memset(&regs, 0, ...) doesn't).

"whole affair" == NULL check in copy_thread(). Except this is a nop, so
I think we're just looking for something that survives copy_thread().

-- wli