patch-2.4.2 linux/arch/mips64/sgi-ip27/ip27-init.c

Next file: linux/arch/mips64/sgi-ip27/ip27-irq.c
Previous file: linux/arch/mips64/sgi-ip27/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.1/linux/arch/mips64/sgi-ip27/ip27-init.c linux/arch/mips64/sgi-ip27/ip27-init.c
@@ -472,9 +472,9 @@
 			sprintf(p->comm, "%s%d", "Idle", num_cpus);
 			init_tasks[num_cpus] = p;
 			alloc_cpupda(cpu, num_cpus);
+			del_from_runqueue(p);
 			p->processor = num_cpus;
 			p->has_cpu = 1; /* we schedule the first task manually */
-			del_from_runqueue(p);
 			unhash_process(p);
 			/* Attach to the address space of init_task. */
 			atomic_inc(&init_mm.mm_count);

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