SMP race condition on startup with patch clarification

From: D.J. Barrow (barrow_dj@yahoo.com)
Date: Tue Apr 30 2002 - 09:26:57 EST


This could also be done by
leaving init_idle as an init function

& doing a check in all
the cpu_idle functions in arch/process.c

#ifdef CONFIG_SMP
if(smp_processor_id()!=0)
#endif
        init_idle();

This would save it attempting to
call the init_idle function
the second time on the boot processor after
it has been freed by free_initmem & avoid the crash.

This patch however would be much bigger
& affect all the arches & probably would
upset more people.

=====
D.J. Barrow Linux kernel developer
eMail: dj_barrow@ariasoft.ie
Home: +353-22-47196.
Work: +353-91-758353

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 30 2002 - 22:00:19 EST