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

Next file: linux/arch/ppc/8xx_io/micropatch.c
Previous file: linux/arch/mips/kernel/smp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.14/linux/arch/mips64/sgi-ip27/ip27-init.c linux/arch/mips64/sgi-ip27/ip27-init.c
@@ -497,7 +497,7 @@
 			alloc_cpupda(cpu, num_cpus);
 			del_from_runqueue(p);
 			p->processor = num_cpus;
-			p->has_cpu = 1; /* we schedule the first task manually */
+			p->cpus_runnable = 1 << num_cpus; /* we schedule the first task manually */
 			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)