patch-1.3.60 linux/arch/i386/kernel/process.c

Next file: linux/arch/i386/kernel/smp.c
Previous file: linux/arch/i386/kernel/irq.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.59/linux/arch/i386/kernel/process.c linux/arch/i386/kernel/process.c
@@ -130,6 +130,10 @@
 {
 	if(current->pid != 0)
 		return -EPERM;
+#ifdef __SMP_PROF__
+	smp_spins_sys_idle[smp_processor_id()]+=
+	  smp_spins_syscall_cur[smp_processor_id()];
+#endif
 	current->counter= -100;
 	schedule();
 	return 0;

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