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
- Lines: 24
- Date:
Wed Jan 3 20:36:23 1996
- Orig file:
v1.3.53/linux/init/main.c
- Orig date:
Tue Jan 2 16:46:31 1996
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