patch-1.3.54 linux/init/main.c

Next file: linux/kernel/exit.c
Previous file: linux/include/linux/smp.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.53/linux/init/main.c linux/init/main.c
@@ -537,6 +537,10 @@
 
 	for(i=1;i<smp_num_cpus;i++)
 	{
+		/*
+		 *	We use kernel_thread for the idlers which are
+		 *	unlocked tasks running in kernel space.
+		 */
 		kernel_thread(cpu_idle, NULL, CLONE_PID);
 		/*
 		 *	Assume linear processor numbering
@@ -636,7 +640,11 @@
 #ifdef __SMP__
 	smp_init();
 #endif
-	/* we count on the initial thread going ok */
+	/* 
+	 *	We count on the initial thread going ok 
+	 *	Like idlers init is an unlocked kernel thread, which will
+	 *	make syscalls (and thus be locked).
+	 */
 	kernel_thread(init, NULL, 0);
 /*
  * task[0] is meant to be used as an "idle" task: it may not sleep, but

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this