Messages in this thread | | | Date | Tue, 30 Apr 2002 07:26:57 -0700 (PDT) | From | "D.J. Barrow" <> | Subject | SMP race condition on startup with patch clarification |
| |
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/
| |