patch-2.3.99-pre9 linux/arch/mips64/kernel/proc.c

Next file: linux/arch/mips64/kernel/process.c
Previous file: linux/arch/mips64/kernel/mips64_ksyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre8/linux/arch/mips64/kernel/proc.c linux/arch/mips64/kernel/proc.c
@@ -11,6 +11,7 @@
 #include <linux/delay.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
+#include <linux/smp.h>
 #include <asm/bootinfo.h>
 #include <asm/mipsregs.h>
 #include <asm/processor.h>
@@ -45,6 +46,7 @@
 	len += sprintf(buffer + len, "BogoMIPS\t\t: %lu.%02lu\n",
 		       (loops_per_sec + 2500) / 500000,
 	               ((loops_per_sec + 2500) / 5000) % 100);
+	len += sprintf(buffer + len, "Number of cpus\t\t: %d\n", smp_num_cpus);
 #if defined (__MIPSEB__)
 	len += sprintf(buffer + len, "byteorder\t\t: big endian\n");
 #endif
@@ -68,4 +70,9 @@
 	len += sprintf(buffer + len, fmt, 'I', vcei_count);
 
 	return len;
+}
+
+void init_irq_proc(void)
+{
+	/* Nothing, for now.  */
 }

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