patch-2.3.7 linux/init/main.c

Next file: linux/ipc/shm.c
Previous file: linux/include/linux/umsdos_fs_i.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.6/linux/init/main.c linux/init/main.c
@@ -1139,6 +1139,7 @@
  * Interrupts are still disabled. Do necessary setups, then
  * enable them
  */
+	lock_kernel();
 	printk(linux_banner);
 	setup_arch(&command_line, &memory_start, &memory_end);
 	memory_start = paging_init(memory_start,memory_end);
@@ -1205,6 +1206,7 @@
 	 */
 	smp_init();
 	kernel_thread(init, NULL, CLONE_FS | CLONE_FILES | CLONE_SIGHAND);
+	unlock_kernel();
 	current->need_resched = 1;
  	cpu_idle(NULL);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)