[parisc-linux-cvs] Fix number of references to idle_task mm

Matthew Wilcox willy@ldl.fc.hp.com
Thu, 22 Feb 2001 16:29:57 -0700


diff -u -p -r1.7 smp.c
--- smp.c	2001/02/13 22:04:41	1.7
+++ smp.c	2001/02/22 23:14:11
@@ -483,6 +476,13 @@ smp_cpu_init(int cpunum)
 		machine_halt();
 	}  
 
+	/* Initialise the idle task for this CPU */
+	atomic_inc(&init_mm.mm_count);
+	current->active_mm = &init_mm;
+	if(current->mm)
+		BUG();
+	enter_lazy_tlb(&init_mm, current, cpunum);
+
 	init_IRQ();   /* make sure no IRQ's are enabled or pending */
 }