patch-2.3.40 linux/kernel/sched.c

Next file: linux/kernel/signal.c
Previous file: linux/kernel/ksyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.39/linux/kernel/sched.c linux/kernel/sched.c
@@ -82,7 +82,7 @@
 
 #ifdef __SMP__
 
-#define idle_task(cpu) (init_tasks[cpu_number_map[(cpu)]])
+#define idle_task(cpu) (init_tasks[cpu_number_map(cpu)])
 #define can_schedule(p)	(!(p)->has_cpu)
 
 #else
@@ -1168,10 +1168,10 @@
 	 * We have to do a little magic to get the first
 	 * process right in SMP mode.
 	 */
-	int cpu=hard_smp_processor_id();
+	int cpu = smp_processor_id();
 	int nr;
 
-	init_task.processor=cpu;
+	init_task.processor = cpu;
 
 	for(nr = 0; nr < PIDHASH_SZ; nr++)
 		pidhash[nr] = NULL;

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